MCTampa
Board Regular
- Joined
- Apr 14, 2016
- Messages
- 97
I am trying to create a value called Average Weekly Rate (AWR) which is the calculated by dividing the running total of Revenue by the running total of Volume.
I have Power Pivot and actually did this successfully in August, but the file got corrupted and now I'm back to square one.
Here are the parameters I'm working with:
My data is in Access.
The data needs to go into a pivot table to be able to create booking curves based on various criteria.
All of my data is based on a field called Comp Date.
In a normal pivot table, I would have my Comp Date in my rows, and Revenue and Volume in my values with them being displayed as a running total in Comp Date.
My thought was that I could create a running total for Revenue and Volume in Power Pivot and just divide the two, but I cannot get the running total to work.
The formula I am using (for volume as an example) is:
Volume =calculate(sum(Output[SumOfRevenue Transaction Volume]),filter(all(Output[Comp Date]),Output[Comp Date]<=max(Output[Comp Date])))
However this is just not working and I'm at a loss as to what is going on. When I bring volume into my pivot table, I am not getting a running total, just daily totals. I can only get the running total when I make it display as such and that does not allow me to accurately create my AWR.
Thanks for any assistance,
Mike
I have Power Pivot and actually did this successfully in August, but the file got corrupted and now I'm back to square one.
Here are the parameters I'm working with:
My data is in Access.
The data needs to go into a pivot table to be able to create booking curves based on various criteria.
All of my data is based on a field called Comp Date.
In a normal pivot table, I would have my Comp Date in my rows, and Revenue and Volume in my values with them being displayed as a running total in Comp Date.
My thought was that I could create a running total for Revenue and Volume in Power Pivot and just divide the two, but I cannot get the running total to work.
The formula I am using (for volume as an example) is:
Volume =calculate(sum(Output[SumOfRevenue Transaction Volume]),filter(all(Output[Comp Date]),Output[Comp Date]<=max(Output[Comp Date])))
However this is just not working and I'm at a loss as to what is going on. When I bring volume into my pivot table, I am not getting a running total, just daily totals. I can only get the running total when I make it display as such and that does not allow me to accurately create my AWR.
Thanks for any assistance,
Mike
Last edited: