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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
KC03
New Member

Compare current revenue measure with last month of last fiscal year

Hello PBI experts,

 

I need help with creating a measure for last month of last fiscal year which will be compared with current month .

For instance, Our fiscal year is April to March

for May-2023 , revenue will be compared with Mar-2022. Similarly for April-2024, revenue will be compared with Mar-2023 

 

Let me know if you need more explaination on my request here.

 

Thanks

Komal

 

 

 

 

1 REPLY 1
amitchandak
Super User
Super User

@KC03 , Try measure like

 

Last month last FY =
var _max = if(isfiltered('Date'),MAX( 'Date'[Date]) , today())
var _min = if(month(_max) <4, Date(year(_max)-1,4,1) ,Date(year(_max),4,1) )
var _max1= _min -1
var _min1 = eomonth(_max1,-1)+1
return
calculate([net],DATESBETWEEN('Date'[Date],_min1,_max1))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors