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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Rolling 12 months calculation for each month

Hi folks,

 

I have a complex calculation to calculate rolling 12 months loss ratio for each month. I have to replicate the below formula to get Rolling 12 month loss rate for each month, what is the best way to achieve this in DAX?

 

Loss % = 1 - { (1 - (Inflow month 1/Outflow month 1)) * (1 - (Inflow month 2/Outflow month 2)) * (1 - (Inflow month 3/Outflow month 3))  ...... (1 - (Inflow month 12/Outflow month 12))  }

 

MonthInflowOutflowCalculated Value  (1 - (Inflow month /Outflow month )Desired Output
Dec-2350004000.92 
Jan-2452008000.846153846 
Feb-245250800.984761905 
Mar-2454001200.977777778 
Apr-2454501250.97706422 
May-2455001000.981818182 
Jun-245600400.992857143 
Jul-245650500.991150442 
Aug-2457001500.973684211 
Sep-2457502000.965217391 
Oct-2458002500.956896552 
Nov-2458502300.96068376139%

 

Any help on his would be much appreciated

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Anonymous Better Rolling Average - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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