Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone, just need help again.
I have sellers and their sales.
I was asked to show only those sellers who were better this month then previous month.
And vice versa show those who were worse this month then previous.
I've tried to make set analysis like this:
sum({<month={$(=Max(Month))}>} Quantity*ProductCost) - sum({<month={$(=Max(Month-1))}>} Quantity*ProductCost)
but got only zeros.
Thanks for your help.
Max
Simplest way :
sellers who were better this month then previous month:
Create a bar chart:
as dimensions:
Month
Seller
as a measure:
aggr(if(Sum(Value)>=above(sum(Value)),sum(Value),0),Seller,Month)
sellers who were worse this month then previous month:
Create a bar chart:
as dimensions:
Month
Seller
as a measure:
aggr(if(Sum(Value)<above(sum(Value)),sum(Value),0),Seller,Month)
here's a result per analogy :