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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
GrahamR99
Resolver I
Resolver I

A list of top 10 sold products

Hello

I have a Query which is call Sales_Data, it has two columns Product_Name and Sales_QTY.

 

I want a list of the top 10 sold products, what are the steps I need to do to do this?

 

Regards

 

GrahamR99

1 ACCEPTED SOLUTION
jcarville
Skilled Sharer
Skilled Sharer

Bring the 2 columns into a table.

Under Filters, click on Product_Name and then change the filter type to TopN.

Enter 10, and then drag Sales_Data into the data field.

View solution in original post

6 REPLIES 6
jcarville
Skilled Sharer
Skilled Sharer

Bring the 2 columns into a table.

Under Filters, click on Product_Name and then change the filter type to TopN.

Enter 10, and then drag Sales_Data into the data field.

Hello

Can you provide the DAX I need please?

 

Regards

 

GrahamR99

No DAX is needed, use my post above along with the screenshot below for your solution.

 

Capture.PNG

Hello

Sorry you have given me what I asked for, but my hope was I could get it in a slicer so I can select the one of the top 10 to affect my data.

 

What do I need to do to get a slicer with the top 10 products?

 

Regards

 

GrahamR99

If you had the table like mentioned, you could still select a product and it would filter your report.

Granted it doesn't look the same as a slicer but it still offers most of the functionality.

 

Maybe someone else has a different solution.

Thank you for your help.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.