Forum Discussion
Ben81
3 years agoHelper I
Two charts with dynamic dates
Hi, stuck with the following; I have two YTD charts on the same page displaying the same measure that spits out a count value on a weekly axis. The first chart shows the selected year via a slicer...
- 3 years ago
If your primary measure is [Count], you could use the SAMEPERIODLASTYEAR function to return last year's data:
Count Last Year = CALCULATE ( [Count], SAMEPERIODLASTYEAR ( DimDate[Date] ) )
DataInsights
3 years agoSuper User
If your primary measure is [Count], you could use the SAMEPERIODLASTYEAR function to return last year's data:
Count Last Year =
CALCULATE ( [Count], SAMEPERIODLASTYEAR ( DimDate[Date] ) )Ben81
3 years agoHelper I
Ah amazing, didn't know of that function.
Thanks