Although time intelligence functions in Power BI allow for some great out of the box analysis, having YTD, PYTD, and other date/time flags in your dates table can be a life saver. Check out this method for creating YTD and PYTD flags in Power BI using M and Power Query.

*this article was originally published on tessellationtech.io