Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Solved! Go to Solution.
Hi,
Please try this:
VAR Year = MAX(Date_V[Year Number])
RETURN
CALCULATE(
"Your Sum Measure",
REMOVEFILTERS(Date_V),
DATESBETWEEN(Date_V[Date],DATE(Year -1,1,1),DATE(Year -1,12,31))
)
Proud to be a Super User!
Hi,
Please try this:
VAR Year = MAX(Date_V[Year Number])
RETURN
CALCULATE(
"Your Sum Measure",
REMOVEFILTERS(Date_V),
DATESBETWEEN(Date_V[Date],DATE(Year -1,1,1),DATE(Year -1,12,31))
)
Proud to be a Super User!
It works perfectly! Thanks a lot.
Hi @Anonymous ,
Do you intend to show the value for each past x months as well and not just the correct selected month? You will need a disconnected dates/calendar table for that as using the one related to your fact table will just show what is selected. Please see attached sample pbix.
Thanks a lot for your reply. I would like a matrix visual as below, where the right column is full last year in spite of filters. I already have a date table, but this is connected...
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 21 | |
| 21 | |
| 21 | |
| 20 | |
| 12 |
| User | Count |
|---|---|
| 58 | |
| 53 | |
| 39 | |
| 30 | |
| 26 |