Forum Discussion
LEC
9 years agoFrequent Visitor
Rolling Percentage On Time
Hi. I know some posts have addressed the issue, but I still can't get it to work for my specific example. In Excel, I have data by month, destination, and carrier, a number of deliveries, and num...
v-sihou-msft
9 years agoMicrosoft Employee
In this scenario, I suggest you add a month number in your table for cumulative calculation. You can create following measures to calculate running total late and delivery.
running total late = CALCULATE(SUM('Table'[Late]),FILTER(ALL('Table'),'Table'[Month Number]<=MAX('Table'[Month Number])))
running total delivery = CALCULATE(SUM('Table'[Delivery]),FILTER(ALL('Table'),'Table'[Month Number]<=MAX('Table'[Month Number])))
Then calculate the percentage:
Pct = 1 -
CALCULATE(SUM('Table'[Late]),FILTER(ALL('Table'),'Table'[Month Number]<=MAX('Table'[Month Number])))
/
CALCULATE(SUM('Table'[Delivery]),FILTER(ALL('Table'),'Table'[Month Number]<=MAX('Table'[Month Number])))
Regards,
LEC
9 years agoFrequent Visitor
This is great! Thank you!
This is basically what I was trying and could not get it to to work.
One issue is that it does not link to other characteristics such as the destination or carrier for slicing purposes. How do I make that happen?