Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Everyone!
Please help me with the below scenario
load * inline [
Products, Sales
P1, 123
P2, 234
P3, 345
P4, 456
P5, 567
P6, 678
P7, 789
P8, 891
P9, 911
P10, 124
];
Question:
With in a straight table, display the products whose rank(sales) ranges between 3 to 7 by using
1. Set Analysis with p()
2. By using the rank() in the if loop or other
Note:
The products should be from rank3 to rank7.
I tried by using the rownum() in the if loop the data is sorting on basis of rownum(). But I need sort the data on the basis of rank of sales. Any suggestions please.
Try like:
Sum({<Products={"=Rank(Sum(Sales))>2 and Rank(Sum(Sales))<8"}>}Sales)
Try like:
Sum({<Products={"=Rank(Sum(Sales))>2 and Rank(Sum(Sales))<8"}>}Sales)
try this expression instead of going set analysis in expression tab
i tried this one its working and paste the below expression in sort tab also
Expression tab:
=if(rank(Sales)>=3 and rank(Sales)<=7,sum(Sales))
sort tab
=if(rank(Sales)>=3 and rank(Sales)<=7,rank(Sales))