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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PBI_newuser
Post Prodigy
Post Prodigy

How to create measure to find the difference % based last Fiscal Year rate

Hi, I want to create a measure "Rate" based on the below logic.

  • Cost_LY = Sum Cost of last fiscal year (e.g FY20)
  • Revenue_LY = Sum Revenue of last fiscal year (e.g. FY20)
  • Rate for Oct-20 = (Revenue_LY/Cost_LY) / (Revenue in Oct-20/Cost in Oct-20) -1
  • Rate for Nov-20 = (Revenue_LY/Cost_LY) / (Sum Revenue from Oct-20 to Nov-20/ Sum Cost from Oct-20 to Nov-21) -1
  • Rate for Jul-21 = (Revenue_LY/Cost_LY) / (Sum Revenue from Oct-20 to Jul-21/ Sum Cost from Oct-20 to Jul-21) -1

How to create a measure to calculate the logic of "Rate" ?

 

DateMonthFiscal YearCostRevenueRate
10/01/2019Oct-19FY20 $            68.89 $          826.73 
11/01/2019Nov-19FY20 $            58.89 $          484.42 
12/01/2019Dec-19FY20 $            59.11 $          241.43 
01/01/2020Jan-20FY20 $            79.38 $          765.33 
02/01/2020Feb-20FY20 $            26.65 $          792.36 
03/01/2020Mar-20FY20 $            80.00 $          597.57 
04/01/2020Apr-20FY20 $            33.00 $          923.93 
05/01/2020May-20FY20 $            38.80 $          192.31 
06/01/2020Jun-20FY20 $            34.97 $          452.41 
07/01/2020Jul-20FY20 $            58.27 $          220.50 
08/01/2020Aug-20FY20 $            21.18 $          581.39 
09/01/2020Sep-20FY20 $            98.38 $          990.55 
10/01/2020Oct-20FY21 $            61.08 $          405.61-38%
11/01/2020Nov-20FY21 $            27.32 $          607.677%
12/01/2020Dec-20FY21 $            78.75 $          753.96-2%
01/01/2021Jan-21FY21 $            65.01 $          753.491%
02/01/2021Feb-21FY21 $            13.13 $          108.610%
03/01/2021Mar-21FY21 $            46.29 $          168.36-11%
04/01/2021Apr-21FY21 $             1.77 $          553.866%
05/01/2021May-21FY21 $            51.64 $          571.106%
06/01/2021Jun-21FY21 $            36.84 $          988.8320%
07/01/2021Jul-21FY21 $             8.31 $          629.5832%
08/01/2021Aug-21FY21   
09/01/2021Sep-21FY21   
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@PBI_newuser , do you need YTD based, Sep as year-end 

 

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"09/30"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"09/30"))

 

 

Same month last year

 

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))

last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@PBI_newuser , do you need YTD based, Sep as year-end 

 

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"09/30"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"09/30"))

 

 

Same month last year

 

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))

last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak , thank you so much for the suggestions. But, I want to calculate the sum of full fiscal year for last year (from Oct-1 to Sep-30). How can I do that?

 

  • Cost_LY = Sum Cost of last fiscal year (e.g FY20)
  • Revenue_LY = Sum Revenue of last fiscal year (e.g. FY20)
  • Rate for Oct-20 = (Revenue_LY/Cost_LY) / (Revenue in Oct-20/Cost in Oct-20) -1
  • Rate for Nov-20 = (Revenue_LY/Cost_LY) / (Sum Revenue from Oct-20 to Nov-20/ Sum Cost from Oct-20 to Nov-21) -1

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors