Hi all,
I have such a basic question that it pains me to even ask, but I just can't crack it. I use pivot tables extensively and have the following problem:
Source data:
[TABLE="width: 700"]
<tbody>[TR]
[TD]Day[/TD]
[TD]Cost[/TD]
[TD]Revenue[/TD]
[TD]Return on investment[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]30[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]400[/TD]
[TD]2000[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]23[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]50[/TD]
[TD]1000[/TD]
[TD]20[/TD]
[/TR]
</tbody>[/TABLE]
Formula
The problem
If I draw a pivot table out of this dataset, It looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Day[/TD]
[TD]Sum of Return on inv.[/TD]
[TD]Avg of Return on inv.[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]25[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
The correct result - Average return on inv. for the whole day 1. is 5.84.
How can I get the correct result in my pivot tables? It may be important to mention that I use "Get and transform" and power pivot so I cannot use "Calculated fields" in my pivot tables. All of the available fields are already loaded and transformed from .csv files.
Many thanks!
Alex
I have such a basic question that it pains me to even ask, but I just can't crack it. I use pivot tables extensively and have the following problem:
Source data:
[TABLE="width: 700"]
<tbody>[TR]
[TD]Day[/TD]
[TD]Cost[/TD]
[TD]Revenue[/TD]
[TD]Return on investment[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]30[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]10[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]400[/TD]
[TD]2000[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]23[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]50[/TD]
[TD]1000[/TD]
[TD]20[/TD]
[/TR]
</tbody>[/TABLE]
Formula
Code:
Return on inv. = Revenue / Cost
The problem
If I draw a pivot table out of this dataset, It looks like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Day[/TD]
[TD]Sum of Return on inv.[/TD]
[TD]Avg of Return on inv.[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]25[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
The correct result - Average return on inv. for the whole day 1. is 5.84.
Code:
Total revenue/Total cost
How can I get the correct result in my pivot tables? It may be important to mention that I use "Get and transform" and power pivot so I cannot use "Calculated fields" in my pivot tables. All of the available fields are already loaded and transformed from .csv files.
Many thanks!
Alex