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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
How to show the last month data , Now we are in current month january 2024 , i need the last month i.e December 2023 data
Please help me on this
I used this formulae but the year is taking as current .
Solved! Go to Solution.
hi, @sunil222
try below
my first answer was wrong
now go with below
pre year pre month =
var a = EOMONTH(MIN('Data Date'[Date]),-1)
var b = EOMONTH(MIN('Data Date'[Date]),-2)+1
var c = CALCULATE([salesamountm],'Data Date'[Date]<=a,'Data Date'[Date]>=b)
return
c
Thanks Ahmed
i got the solution
hi, @sunil222
try below measure
pre year pre month =
var a = EOMONTH(MIN('Data Date'[Date]),-13)
var b = EOMONTH(MIN('Data Date'[Date]),-14)+1
var c = CALCULATE([salesamountm],'Data Date'[Date]<=a,'Data Date'[Date]>=b)
return
c
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |