Forum Discussion
mark_carlisle
Advocate IV
6 years agoDate What If Parameter
I've created 3 What If parameters Date - Year, Date - Month, and Date - Day. I have a two measures already to calculate the total cases pre and post a date, these are; Total Cases (Post 1...
- 6 years ago
Try:
Total Cases (Pre 16/03) = VAR __Year = SELECTEDVALUE([Date - Year Value]) VAR __Month = SELECTEDVALUE([Date - Month Value]) VAR __Day = SELECTEDVALUE([Date - Day Value]) CALCULATE ( [Total Cases(Distinct)], ALL ( 'Calendar' ), FILTER ( 'Calendar', AND ( 'Calendar'[Date] >= DATE ( 2020, 01, 01 ), 'Calendar'[Date] < DATE ( __Year, __Month, __Day ) ) ) )
mark_carlisle
Advocate IV
6 years agoTried the same thing earlier and it didn't work, but tried yours anyway and then realised it was because I didn't have the Sync Slicers option set correctly!
Thanks for the help.