cmcreynolds
Active Member
- Joined
- May 21, 2015
- Messages
- 295
Hello again MRExceleteers
Here is the result of a piece of my pivot table I created in Power Pivot. Now, the three right columns are all calculated fields (let's use ColA, ColB, ColC, and ColD to differentiate) summarized (aggregated, if you will) by the dates you see on the left.
Now I need a rate that involves one date AND the previous.
[TABLE="width: 367"]
<tbody>[TR]
[TD]1/14/2013
[/TD]
[TD="align: right"]34[/TD]
[TD][/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]3/11/2013[/TD]
[TD="align: right"]34[/TD]
[TD][/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]5/6/2013[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]7/1/2013[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8/26/2013
[/TD]
[TD="align: right"]72[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]3[/TD]
[/TR]
</tbody>[/TABLE]
For example:
The rate for 8/26/2013 is (72-35)/(45-9-0). I can get the numerator and denominator no problem, but how do I divide using the previous date as a calculated field?
I was thinking maybe making it a flat table and having a column to the right with simple "Excel" formulas, but I didn't know if it can be done in the data model as a calculated field.
Thoughts?
Here is the result of a piece of my pivot table I created in Power Pivot. Now, the three right columns are all calculated fields (let's use ColA, ColB, ColC, and ColD to differentiate) summarized (aggregated, if you will) by the dates you see on the left.
Now I need a rate that involves one date AND the previous.
[TABLE="width: 367"]
<tbody>[TR]
[TD]1/14/2013
[/TD]
[TD="align: right"]34[/TD]
[TD][/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]3/11/2013[/TD]
[TD="align: right"]34[/TD]
[TD][/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]5/6/2013[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]7/1/2013[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8/26/2013
[/TD]
[TD="align: right"]72[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]3[/TD]
[/TR]
</tbody>[/TABLE]
For example:
The rate for 8/26/2013 is (72-35)/(45-9-0). I can get the numerator and denominator no problem, but how do I divide using the previous date as a calculated field?
I was thinking maybe making it a flat table and having a column to the right with simple "Excel" formulas, but I didn't know if it can be done in the data model as a calculated field.
Thoughts?