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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
NewbieJono
Post Patron
Post Patron

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

)

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

)

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.