Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How do I get a value for the cumulative value of any given ratio? I am computing Manufacturing Profit Margin % = Manufacturing Profit / Total Sales. I am trying to write an expression that will sum compute the overall value by taking Manufacturing Profit 1 + Manufacturing Profit 2 +Manufacturing Profit 3 / Total Sales 1 + Total Sales 2 + Total Sales 3 = Cumulative Manufacturing Profit Margin % for periods 1-3. Any help?
Check this out:
Script:
Table:
LOAD * Inline [
Month, Metric, Value
1, Metric 1, 23996
1, Metric 2, 6245
2, Metric 1, 47980
2, Metric 2, 12489
3, Metric 1, 33692
3, Metric 2, 22108
];
Expression1: =Sum({<Metric = {'Metric 1'}>}Value)
Expression2: =Sum({<Metric = {'Metric 2'}>}Value)
Expression3: =Sum({<Metric = {'Metric 2'}>}Value)/Sum({<Metric = {'Metric 1'}>}Value)
Does this help?
Still no luck, Im getting the following, when I want to display the following values. I'm importing the numerator and denominator separately, summing them each month, and dividing the cumulative sum each month to mark the YTD margin %.
0.260252 |
0.260296 |
0.65618 |
0.480691 |
1.482634 |
0.863829 |
2.405509 |
1.462208 |
2.981861 |
1.634095 |
3.671661 |
2.017935 |
Example: Desired End Data and Current Chart
Can you give me non cumulative data so that i can do it from scratch for you Michael?
Best,
Sunny
See attached file
Any luck?
Going to look at it know ... Sorry got busy with some meetings
Can you verify that is this what you are trying to do?
Yes
Hopefully this:
Thank you so much, I was so close. RangeSum(Above(Sum(), 0, RowNo())) was very helpful.