Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have several products, each of them has a % of sales.I want to display the evolution in another chart. But when i try to do it the cahrt is like this one:
As you can see the % doesn´t match between graphs. The Set Analysis formula is the same.
(sum({<[Operation]={'Sale'},Year,MonthYear, [Wallet ID]={'A','B', 'C', 'D'}>}Amount)
-
sum({<[Operation]={'Return'}Year,MonthYear, [Wallet ID]={'A','B', 'C', 'D'}>}Amount))
/
(sum({<[Operation]={'Sale'},Year,MonthYear, [Wallet ID]={'A','B', 'C', 'D'}>} Total Amount)
-
sum({<[Operation]={'Return'},Year,MonthYear, [Wallet ID]={'A','B', 'C', 'D'}>} Total Amount)
Any guess what im doing wrong?
Thanks
You may try it with:
... Total <Year> Amount)
to consider at least one dimension - the Year - by the calculation (depending on requirement you may add Product respectively switch between dimensions).
You may try it with:
... Total <Year> Amount)
to consider at least one dimension - the Year - by the calculation (depending on requirement you may add Product respectively switch between dimensions).
The bar chart is the good one, the % of the Blue one should be 76% in 2023, not 25%.
With the solution you suggested there is an error in the expression.
There should be no error - did you an appropriate adjustments of the total statements within the expression?
Yes, my bad. I didn´t introduced it properly. Now is working fine.
Thanks a lot!