Forum Discussion
hbolo
7 years agoRegular Visitor
YoY YTD Revenue Trends -- Should not Include Entire Month
I am analyzing Year-over-Year, Year-to-Date revenue trends and I'm having some troubles coming up with the right formula for the Prior Year Amounts. For example, it's now January 2, so I want to comp...
AlB
Community Champion
7 years ago
The measures will take the latest date in filter context as base. If filter context is absent, they will take the latest date in the Date table. You can set them in a Card with a slicer to determine what date you want in the filter context.
- hbolo7 years agoRegular Visitor
Effectively make the slicer automatically update based on today's date. For example, as time progresses the slicer forward like the TODAY() function would. For a YoY comparison it'd be extremely helpful if there was some way to do TODAY() - 1 year.
Does that make sense?
- marcorusso7 years ago
Most Valuable Professional
You can find several examples in this article: https://www.sqlbi.com/articles/compare-equivalent-periods-in-dax/