cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
mherrick Frequent Visitor
Frequent 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, having trouble w/ the selected value portion. If I remove interactions w/ the slicer it shows all as the selected value; if I keep the filter on, it shows only selected... Please help! 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Top / Bottom N & Selected

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

Hamburg - Germany
If I answer your question, please mark my post as solution, this will also help others.
Proud to be a Datanaut!

View solution in original post

5 REPLIES 5
Super User
Super User

Re: Top / Bottom N & Selected

Hey,

 

I have to admit that I'm not fully understand your requirement.

 

Please create sample data, upload the resulting pbix file to onedrive or dropbox and share the link to the pbix file.

 

Regards

Tom

Hamburg - Germany
If I answer your question, please mark my post as solution, this will also help others.
Proud to be a Datanaut!
mherrick Frequent Visitor
Frequent Visitor

Re: Top / Bottom N & Selected

Thank you so much for responding. Please see the below link for a test file. If there's anything else I can provide, let me know!

 

test.pbix

Super User
Super User

Re: Top / Bottom N & Selected

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

Hamburg - Germany
If I answer your question, please mark my post as solution, this will also help others.
Proud to be a Datanaut!

View solution in original post

mherrick Frequent Visitor
Frequent Visitor

Re: Top / Bottom N & Selected

Got it! Working now. Thank you so, so much! 

Super User
Super User

Re: Top / Bottom N & Selected

Perfect!
Hamburg - Germany
If I answer your question, please mark my post as solution, this will also help others.
Proud to be a Datanaut!

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 373 members 3,932 guests
Please welcome our newest community members: