Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi folks,
I have the following scenario:
Product | Units | NTS |
---|---|---|
Product A | 10 | 1000 |
Product B | 10 | 500 |
I want to achieve the following result table:
Product | Units | NTS |
---|---|---|
Product | 20 | 1500 |
I the table above, I have another dimension level that group Products by Brand. In my example, the brand name is Product.
However, by considering the NTS is not pre-calculated, I mean, NTS is actually an expression that multiplies Unit Price by Units, I'm getting the following NTS value:
I have tried to use AGGR, but I'm not so familiar with this function.
Do you have some clue?
Best,
Rubens
Hello!
Try this:
=Sum(TOTAL AGGR(Sum([Unit Price]*Units), Product))
or you can just use this
=Sum(Aggr(Sum(Unit Price * Units), Brand, Product))