Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
Row Labels | Negative | Positive |
AA | -2400792.828 | 567974.053 |
BB | -318395.583 | 24996.186 |
CC | -7764599509 | 176429.394 |
Grand Total | -7767318697 | 769399.633 |
I need to calculate the percentage of each "row labels" out of Grand Total for both Negative & Positive Category. Also I need to use the filter as "Class1" from one of the column's (by using which I get the above Data table). I need to put all these conditions in one expression.
If anyone can help let me know.
Try this
For Positive: Sum({<Margin={'Positive'}, Region = {'Class1'}>}sales)/Sum({<Region = {'Class1'}>} TOTAL <Margin>Sales)
For Negative: Sum({<Margin={'Negative'}, Region = {'Class1'}>}sales)/Sum({<Region = {'Class1'}>} TOTAL <Margin>Sales)
What is your expression right now for Negative and Positive? Also, what is the expected output? Can you share that as well
@arvinserco wrote:
Note: Negative & Positive, Row labels are in two different columns in data
What do you mean? do you have two fields called? Negative and Positive or are they part of a single field?
It is something like this:
Row Labels | Margin | Sales |
AA | Negative | -2400792.828 |
AA | Positive | 567974.053 |
BB | Negative | -318395.583 |
BB | Positive | 24996.186 |
CC | Negative | -7764599509 |
CC | Positive | 176429.394 |
Grand Total | -7766549298 |
Try this
Sum(sales)/Sum(TOTAL <Margin> Sales)
I am not sure I follow?