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! Learn more

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.