Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MrNoob
Helper II
Helper II

TOP N with one permanent Filtered Value

I am very new to Power Bi, and I feel this is possible, HOWEVER, I am having some difficulty displaying the data the way I want it.  

 

So I am working with Multinational data, and want to display my companies data for a given country no matter what.  However as the user slices through the data, the top 5 other companies will change, however always displaying my companies data.

 

I had tried creating a measure Filtering down my data and performing the calculations and then made one for all others, However, I cannot have both selected in PowerBi, and add the other companies to the Legend

1 ACCEPTED SOLUTION

I believe the pbix in attach link will get you started, I hope I understood your requirments correctly and solution in PBIX will resolve your issue.

 

https://drive.google.com/file/d/1O5Z4lJuoUtQ9-GkR7D3zlzLtLoii6Dg7/view?usp=sharing



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

6 REPLIES 6
parry2k
Super User
Super User

I guess you are trying to achieve that TOP N shouldn't change even if you use the slicer? Is it correct understanding?

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I want the Top N to change however, i want to always include a specific company,  

 

As the top N for each country will change, we want to compare how well our company is doing compared to the Top N companies 

 

 

On one line chart

So let's say if you have top 10 countries by revenue, which value you want to compare against from those top 10 with your company. Sample data and expected output will be helfpul to provide the solution.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

The expected outcome would be the top 10 companies by Revenue, but also display the 11th company which would always be displayed.  


It is possible to filter by top 10 and exclude a company using the filters built in.  

 

 

Working on a sample set

https://1drv.ms/x/s!Aga7ypCzQZ2yjhM2bJAdNCsTfZhN

 

 

The link should go to a sample set of data that has been scrubbed 

I believe the pbix in attach link will get you started, I hope I understood your requirments correctly and solution in PBIX will resolve your issue.

 

https://drive.google.com/file/d/1O5Z4lJuoUtQ9-GkR7D3zlzLtLoii6Dg7/view?usp=sharing



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.