Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sunil222
Helper II
Helper II

Show last month data in report

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 .

 

Last Month = CALCULATE(SUM('SalesTeamPerformance'[Actual]),YEAR('SalesTeamPerformance'[Month year])=YEAR(TODAY()) && MONTH('SalesTeamPerformance'[Month year])=MONTH(TODAY())-1)
2 ACCEPTED SOLUTIONS
Ahmedx
Super User
Super User

Thanks Ahmed

 

i got the solution

View solution in original post

4 REPLIES 4
Dangar332
Super User
Super User

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

 

Dangar332_0-1704114795512.png

 

Ahmedx
Super User
Super User

pls try htis

Screenshot_3.png

Thanks Ahmed

 

i got the solution

Dangar332
Super User
Super User

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

Dangar332_0-1704113450230.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.