Forum Discussion
monika_eliza
3 years agoFrequent Visitor
Problem with choosing noncontiguous dates
Hello, I have a problem with using a date slicer: when I am choosing multiple dates which are noncontiguous (e.g. March and May instead of March, April and May) my matrix visual crashes. In m...
- 3 years ago
To anyone who would have the same problem in the future, I found a solution.
Instead of:
Sales Sameperiodlastyear m. = CALCULATE((SUM(PowerBI_input[Sales])), SAMEPERIODLASTYEAR(('Calendar'[Date])))
use:
Sales YA = CALCULATE(SUM(PowerBI_input[Sales]), PARALLELPERIOD('Calendar'[Date], -12, MONTH))
monika_eliza
3 years agoFrequent Visitor
Hi Anonymous,
In the link I am sharing the sample model with you: https://drive.google.com/file/d/1B4QtamNtxrCERpsqa8ltAszLDHY5ralI/view?usp=sharing
When I choose noncontiguous months, my matrix shows me this message:
Regards,
Monika