This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I want to compare data with the results in the same periode last year and have the next DAX formula:
When i don't use a date-filter visual i see that the line "Total Calls LY" (last year) also shows the next year.
How can i complete the DAX formula that it have a maximum date of the current date?
Thanks
Solved! Go to Solution.
The easiest way I've found to deal with this is to just check for a current value ...
Total Calls LY = IF( [Total Calls],
CALCULATE( [Total Calls] ; SAMEPERIODLASTYEAR( Datum[Date])),
BLANK())
You actually don't need the third argument - BLANK() - because BLANK() is the default third argument for the IF() formula.
The easiest way I've found to deal with this is to just check for a current value ...
Total Calls LY = IF( [Total Calls],
CALCULATE( [Total Calls] ; SAMEPERIODLASTYEAR( Datum[Date])),
BLANK())
You actually don't need the third argument - BLANK() - because BLANK() is the default third argument for the IF() formula.
Thanks a lot for the solution. It works fine
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 23 | |
| 18 |