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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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])))

)

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

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])))

)

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.