This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
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 my dataset I have two tables: the first one is Calendar table I created myself (I am not using CALENDARAUTO() nor CALENDAR() functions). My dates are noncontiguous - I start from the last day of Jul '21 and end on the last day of Jun '23, so each month has only one date (the last day of the month). The table contains unique values only. My second table (PowerBI_input) contains the date (also only the last day of the month) and sales columns. I connected those two tables with a relationship (one to many, single direction) from Calendar table to PowerBI_input table where the key is date.
To create my matrix visual, I created the following measures:
Solved! Go to Solution.
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:
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:
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
Hi @monika_eliza ,
Please share some sample data so that we could test the formula.
Best Regards,
Jay
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 31 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 74 | |
| 61 | |
| 31 | |
| 31 | |
| 23 |