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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Filippomonti
Frequent Visitor

TopN Product with Others and ranked by price unit

HI all, 

i have this kind of dataset of product, quantity, revenue and price unit:

Filippomonti_0-1734101235569.png

I want to create a report where i can choose, through a slicer i already created, the top N product to show based on price unit and all the other products excluded in the generic "others".

I already created a new table with the UNION function and I have this table

Filippomonti_3-1734101369045.png

So i want this kind of output where i show only the top n product, others and their data using Price unit as Driver

Filippomonti_4-1734101416735.png

I know how to do this using quantity and revenue as drivers but i can't figure it out when it comes to price unit as driver.

Is there a way I can do this report?

 

Thank you very much for your help!

 

Filippo

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question in the attached file.  Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Filippomonti
Frequent Visitor

Thanks for the reply but the problem is to calculate the price unit of others because in my report (created with the link @lbendlin sent) the measures calculate the sum of revenue using that as driver. I want to use Price unit as driver so it sums up the revenue and quantity of others product with price unit that is out of the top n

Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question in the attached file.  Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Looks like you already did most of the work.  Where are you stuck?

Filtering the top products alongside the other products in Power BI - SQLBI

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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