Ankitsahgal
New Member
- Joined
- Dec 19, 2015
- Messages
- 11
Hello everyone,
I am trying to build a P&L that I can slice and dice as required. I get data for multiple sites and need to ability to into with a few clicks.
I have the data in the below format:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Site Name[/TD]
[TD]Category[/TD]
[TD]Period 1[/TD]
[TD]Period 2[/TD]
[TD]Period 2[/TD]
[TD]Period 3[/TD]
[/TR]
[TR]
[TD]Delta[/TD]
[TD]Drink Sales[/TD]
[TD]5[/TD]
[TD]10[/TD]
[TD]15[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Delta[/TD]
[TD]Food Sales[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]7.5[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]Delta[/TD]
[TD]Drink COS[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Delta[/TD]
[TD]Food COS[/TD]
[TD]6[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Beta[/TD]
[TD]Drink Sales[/TD]
[TD]6[/TD]
[TD]10[/TD]
[TD]8[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Beta[/TD]
[TD]Food Sales[/TD]
[TD]8[/TD]
[TD]7[/TD]
[TD]4[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Beta[/TD]
[TD]Drink COS[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Beta[/TD]
[TD]Food COS[/TD]
[TD]6[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to calculate the Gross profit which is Drink sales - Drink COS , Food sales -Food COS
I have come up the below:
Cost of Sales:= Calculate([Sum of Period 1],[category]="Drink Sales")-Calculate([Sum of Period 1],[category]="Drink COS")
But obviously I will have to create the same measure for all the periods ?
Is there a way to create a single measure as opposed measures for so many periods?
Thank you
Ankit
I am trying to build a P&L that I can slice and dice as required. I get data for multiple sites and need to ability to into with a few clicks.
I have the data in the below format:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Site Name[/TD]
[TD]Category[/TD]
[TD]Period 1[/TD]
[TD]Period 2[/TD]
[TD]Period 2[/TD]
[TD]Period 3[/TD]
[/TR]
[TR]
[TD]Delta[/TD]
[TD]Drink Sales[/TD]
[TD]5[/TD]
[TD]10[/TD]
[TD]15[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Delta[/TD]
[TD]Food Sales[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]7.5[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]Delta[/TD]
[TD]Drink COS[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Delta[/TD]
[TD]Food COS[/TD]
[TD]6[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Beta[/TD]
[TD]Drink Sales[/TD]
[TD]6[/TD]
[TD]10[/TD]
[TD]8[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Beta[/TD]
[TD]Food Sales[/TD]
[TD]8[/TD]
[TD]7[/TD]
[TD]4[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Beta[/TD]
[TD]Drink COS[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Beta[/TD]
[TD]Food COS[/TD]
[TD]6[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to calculate the Gross profit which is Drink sales - Drink COS , Food sales -Food COS
I have come up the below:
Cost of Sales:= Calculate([Sum of Period 1],[category]="Drink Sales")-Calculate([Sum of Period 1],[category]="Drink COS")
But obviously I will have to create the same measure for all the periods ?
Is there a way to create a single measure as opposed measures for so many periods?
Thank you
Ankit