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 in descending order.
I tried with the rownum() in the if loop, it is returning as per the rownum but not by the rank of sum. Any suggestions please.
StraightTable:
Dimension:
=if(aggr(rank(Sales),Products)>=3 and aggr(rank(Sales),Products)<=7,Products)
Expression:
sum(Sales)
and sort sum(Sales) in ascending order!
StraightTable:
Dimension:
=if(aggr(rank(Sales),Products)>=3 and aggr(rank(Sales),Products)<=7,Products)
Expression:
sum(Sales)
and sort sum(Sales) in ascending order!
I would do it like I showed at: your other post
Hey Frank!
I tried the way you suggested, but in the straight table I dint know why an extra row is showing in the bottom
Please help me!
You will need to supress Null Values for your dimension