Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to get 2 lowest sales Customer name in text box.
I tried to do a expression but its not working.
=only(if(Aggr(rank(Sum(-NetSales)),Customer_CompanyName)=1, Customer_CompanyName))
Can anyone pls tell what is problem?
Hi,
Try like below,
=Concat(DISTINCT Aggr(If(Rank(-Sum(Measure)) <=2, Product), Product), ', ')
May be try with FirstSortedValue()
Customer with lowest Sales
FirstSortedValue(Customer_CompanyName, Aggr(Sum(NetSales), Customer_CompanyName))
Customer with 2nd lowest Sales
FirstSortedValue(Customer_CompanyName, Aggr(Sum(NetSales), Customer_CompanyName), 2)
Hi,
Try like below,
=Concat(DISTINCT Aggr(If(Rank(-Sum(Measure)) <=2, Product), Product), ', ')
Can also be done using set analysis
=Concat(DISTINCT {<Product = {"=Rank(-Sum(Measure)) < 3"}>}Product, ', ')