Forum Discussion
george_o0802
2 years agoRegular Visitor
Top 5 and Bottom 5 in same table
Previous solutions don't seem to work so I need some clearer guidance I think. Below is what I want the results to look like I have ranked a set of products by RSV and a YoY rank change. ...
- 2 years ago
george_o0802 you can easily achieve this by adding following measure:
Top Bottom = VAR __Products = FILTER ( ADDCOLUMNS ( SUMMARIZE ( ALLSELECTED ( Products[Product] ), Products[Product] ), "@Sale", [Sales] ), NOT ISBLANK ( [@Sale] ) ) RETURN CALCULATE ( [Sales], KEEPFILTERS ( UNION ( TOPN ( 5, __Products, [@Sale], ASC ), TOPN ( 5, __Products, [@Sale] ) ) ) )
parry2k
Super User
2 years agogeorge_o0802
2 years agoRegular Visitor
Previous solutions related to line charts and scatter graphs and I couldn't seem to get them to work in this table form.