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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
NewbieJono
Post Partisan
Post Partisan

rolling Percentage

Hello, How could i do a rolloing percentage based on the days before in the table

 

as table below  in the last coloumn (Bold) 

 

e.g in excel for 4th Jan the formula would be =SUM(C4:C7)/SUM(D4:D7)

 

 

Col BCol CCol DCol ECol F
DateTotal FaillureTotal TransactionsDaily Percentage Failure Rate2021 Percentage Failure Rate
1-Jan33,356133,43925.0%25.0%
2-Jan29,723105,39128.2%26.4%
3-Jan20,48269,62129.4%27.1%
4-Jan36,483114,12632.0%28.4%
5-Jan27,47987,79131.3%28.9%
6-Jan47,261175,26827.0%28.4%
7-Jan59,169228,00226.0%27.8%
8-Jan45,075167,95726.8%27.6%
9-Jan30,831111,59627.6%27.6%
10-Jan22,12976,94528.8%27.7%
11-Jan36,722127,61828.8%27.8%
12-Jan30,913105,17729.4%27.9%
13-Jan30,414103,15329.5%28.0%
14-Jan27,54893,66329.4%28.1%
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@NewbieJono , With help from date table

 

Divide(

CALCULATE(SUM(Table[Col C]),filter(allselected('Date'),'Date'[date] <=max('Date'[date]))) ,

CALCULATE(SUM(Table[Col D]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

)

 

or

 

Divide(

CALCULATE(SUM(Table[Col C]),filter(allselected('Table'),'Table'[date] <=max('Table'[date]))) ,

CALCULATE(SUM(Table[Col D]),filter(allselected('Table'),'Table'[date] <=max('Table'[date])))

)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@NewbieJono , With help from date table

 

Divide(

CALCULATE(SUM(Table[Col C]),filter(allselected('Date'),'Date'[date] <=max('Date'[date]))) ,

CALCULATE(SUM(Table[Col D]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

)

 

or

 

Divide(

CALCULATE(SUM(Table[Col C]),filter(allselected('Table'),'Table'[date] <=max('Table'[date]))) ,

CALCULATE(SUM(Table[Col D]),filter(allselected('Table'),'Table'[date] <=max('Table'[date])))

)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.