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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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])))

)

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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