Forum Discussion
mherrick
8 years agoRegular Visitor
Top / Bottom N & Selected
Hi I'm looking to create a chart that shows Top N, Bottom N (regardless of slicer selection) and a selected value (by a slicer) as the X-Axis. I've solved the Top and Bottom N part just fine. However...
- 8 years ago
Hey,
thanks for sharing the data, now I understand your requirement.
Due to the time this is not a direct solution, but maybe this can give you an idea:
https://www.minceddata.info/2018/06/06/topsomething-and-all-the-rest-called-other/
If this will not help, I will take a closer look tomorrow evening - sorry for that.
Create an unrelated table that contains all the cities.
Create two tables TOPN, BOTTOMN and add the selected value from the slicer using ROW (check if the value is already in the new table, using CONTAINS(...)), then use this "new" table to map the cities to the unrelated table (used as axis for the visuals).
Hopefully this gives you an idea how to solve this
Regards
Tom
mherrick
8 years agoRegular Visitor
Got it! Working now. Thank you so, so much!
TomMartens
8 years agoSuper User
Perfect!