Hello,
I have a question. I would like to calculated ratio's from a database with balancesheets in a pivot-table. The data is as follows:
[TABLE="width: 564"]
<tbody>[TR]
[TD]Company[/TD]
[TD]Balance Sheet no[/TD]
[TD]Description[/TD]
[TD]Value[/TD]
[TD]Year[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]25[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]35[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]75[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]20[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]21[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]40[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]100[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]80[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]50[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]60[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]18[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]20[/TD]
[TD]2017[/TD]
[/TR]
</tbody>[/TABLE]
What I would like is to have a calculated field in a pivot table that calculates the ratio Cash / Short Term Debt, like this: This is what the result should be:
[TABLE="width: 428"]
<tbody>[TR]
[TD]company[/TD]
[TD]2017[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD] 2,000[/TD]
[TD] 0,333[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD] 3,000[/TD]
[TD] 0,500[/TD]
[/TR]
</tbody>[/TABLE]
I have been able to create this pivot-table myself, but I had to use a work around. I added two columns to the data, like this:
[TABLE="width: 832"]
<tbody>[TR]
[TD]Company[/TD]
[TD]Balance Sheet no[/TD]
[TD]Description[/TD]
[TD]Value[/TD]
[TD]Year[/TD]
[TD]Cash[/TD]
[TD]Short Term Debt[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]25[/TD]
[TD]2018[/TD]
[TD]25[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]35[/TD]
[TD]2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]75[/TD]
[TD]2018[/TD]
[TD][/TD]
[TD]75[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]20[/TD]
[TD]2018[/TD]
[TD]20[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]21[/TD]
[TD]2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]40[/TD]
[TD]2018[/TD]
[TD][/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]100[/TD]
[TD]2017[/TD]
[TD]100[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]80[/TD]
[TD]2017[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]50[/TD]
[TD]2017[/TD]
[TD][/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]60[/TD]
[TD]2017[/TD]
[TD]60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]18[/TD]
[TD]2017[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]20[/TD]
[TD]2017[/TD]
[TD][/TD]
[TD]20[/TD]
[/TR]
</tbody>[/TABLE]
Then I was able to use a calculated field: = Cash / Short term debt. The result is shown above.
However I am looking for a way to calculate this without changing the data set, because the real dataset is huge and I want to calculate many different ratio's. I need flexibility. I hope anyone has a solution .
I hope the problem definition is clear
Kind regards,
Martijn
I have a question. I would like to calculated ratio's from a database with balancesheets in a pivot-table. The data is as follows:
[TABLE="width: 564"]
<tbody>[TR]
[TD]Company[/TD]
[TD]Balance Sheet no[/TD]
[TD]Description[/TD]
[TD]Value[/TD]
[TD]Year[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]25[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]35[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]75[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]20[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]21[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]40[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]100[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]80[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]50[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]60[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]18[/TD]
[TD]2017[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]20[/TD]
[TD]2017[/TD]
[/TR]
</tbody>[/TABLE]
What I would like is to have a calculated field in a pivot table that calculates the ratio Cash / Short Term Debt, like this: This is what the result should be:
[TABLE="width: 428"]
<tbody>[TR]
[TD]company[/TD]
[TD]2017[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD] 2,000[/TD]
[TD] 0,333[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD] 3,000[/TD]
[TD] 0,500[/TD]
[/TR]
</tbody>[/TABLE]
I have been able to create this pivot-table myself, but I had to use a work around. I added two columns to the data, like this:
[TABLE="width: 832"]
<tbody>[TR]
[TD]Company[/TD]
[TD]Balance Sheet no[/TD]
[TD]Description[/TD]
[TD]Value[/TD]
[TD]Year[/TD]
[TD]Cash[/TD]
[TD]Short Term Debt[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]25[/TD]
[TD]2018[/TD]
[TD]25[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]35[/TD]
[TD]2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]75[/TD]
[TD]2018[/TD]
[TD][/TD]
[TD]75[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]20[/TD]
[TD]2018[/TD]
[TD]20[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]21[/TD]
[TD]2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]40[/TD]
[TD]2018[/TD]
[TD][/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]100[/TD]
[TD]2017[/TD]
[TD]100[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]80[/TD]
[TD]2017[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]50[/TD]
[TD]2017[/TD]
[TD][/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]3[/TD]
[TD]Cash[/TD]
[TD]60[/TD]
[TD]2017[/TD]
[TD]60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]4[/TD]
[TD]Inventories[/TD]
[TD]18[/TD]
[TD]2017[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Facebook[/TD]
[TD]5[/TD]
[TD]Short Term debt[/TD]
[TD]20[/TD]
[TD]2017[/TD]
[TD][/TD]
[TD]20[/TD]
[/TR]
</tbody>[/TABLE]
Then I was able to use a calculated field: = Cash / Short term debt. The result is shown above.
However I am looking for a way to calculate this without changing the data set, because the real dataset is huge and I want to calculate many different ratio's. I need flexibility. I hope anyone has a solution .
I hope the problem definition is clear
Kind regards,
Martijn