Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Filter for top 3 or bottom 3 department

$
0
0

My monthly sales by department report is like below.

How can I make this report only export with the top 3 departments that have highest sales (dept,  and the bottom 3 departments that has lowest sales into one report??? 

Also, If there are more than 1 department have the same sales and ranked as number 3, then pull out all these department.

For example,  the top 3 department from the following table should be Dept 6, 2, 1 and 4 since dept 1 and dept 4 have the same sales.  

I currently use the sort function to rank the sales from the highest to lowest, then export the entire dept.  

Then re-rank it from the lowest to highest, then export the entire dept again to get different excel sheet with different ranking by dept.    

Is there any way to only export top 3 and bottom 3?   Thank you. 

 

 

DeptMTD Sales
1600
2900
3540
4600
587
6940
7300
8480
9500

Viewing all articles
Browse latest Browse all 4999

Trending Articles