Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Maybe it's simple, but I'm stuck - in this context, when selecting one month of current year (in eg Feb 2011) , I need to show the value from the last month of the previous year (so 150, Dec 2010). Thank you in advance.
Hi @Bobass75
@talespin GOOD ANSWER!
If your problem hasn't been solved yet, you can also try this.
1. Create a calculated table as the slicer
Date = VALUES('Table'[Date])
2. Create a measure
Measure =
VAR _1 = YEAR(SELECTEDVALUE('Date'[Date]))
VAR _month = 12
RETURN
IF(MAX([Date]) = SELECTEDVALUE('Date'[Date]) || YEAR(MAX([Date])) = _1 - 1 && MONTH(MAX([Date])) = _month, 1, 0)
3. Put the measure into the visual-level filters, set up show items when the value is 1.
Output:
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Bobass75
You don't need the use of Time intelligence for this. You need to get the Value in December of the Previous Year.
Try to adjust this please.
Your Measure =
VAR _Year = SELECTEDVALUE(Date_table(YEAR))
VAR _PY_Year = _Year - 1
VAR _Result = CALCULATE( CU, Date_table(YEAR) = _PY_Year , Date_table(Month) = 12)
RETURN
_Result
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Hello
I wrote the formula and it does not work
hi @Bobass75 ,
Since you have a slicer on date, you need to remove filter on Date when using CALCULATE. I have a Date table and Fact Sales, using below measure to calculate sales for last month previous year.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 18 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 21 | |
| 14 | |
| 12 |