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
Anonymous
Not applicable

Show TOP 250 Items as a Static Row

Hi community members, 

 

I am aware of adding a table with a few set of rows (disconnected and connected) to get the end results but I am not able to find any help to get a Top 250 Items table working. 

Problem: I am building a report for a retailer and they want to see the Top 250 Products sold within a selected date range across the entire company and with an associated Item Rank. This list can be filtered by product brand, category, segment , region etc..but not the retailers customers. What I mean by that is when the report user filters the Top 250 products table for a region, they will end up seeing the Top 250 products for their region but when it comes filtering on a customer, the list of products should always show the overall company's Top 250 products. 

The use case being, when their sales rep pulls up the report when interacting with his customer, he/she would like to know what in the Top 250 Items across the entire organization has been purchased or not purchased by that customer. 

 

Data model: The Sales fact table has a customer id, product id, brand id and region id with a many to one relationship to each of the dimensional tables. 

 

Thanks! 

Sumanth

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Sumanthjb, typically if you created a Rank as a

Rankx(all(Table[prodcut]), [product sold])

It means product range within any other group by, if nothing then product. If you choose the company, then the top 250 within the product.

If you want to force any subcategory of specific use thin Range

See example in

https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...

View solution in original post

V-pazhen-msft
Community Support
Community Support

@Sumanthjb

Try to create a slicer to select the date range, and use the TOP n filter in the table visual to filter the top 250 product based on the sales value.

top 250.JPG


Paul Zheng _ Community Support Team
If this post helps, then consider Accept it as the solution to help other members find it faster.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Thanks everyone for sending your response.

I ended up using a pre aggreated table of the sales from the last 12 months and creating the Rank function like you pointed out to get the final result.

Sumanth

V-pazhen-msft
Community Support
Community Support

@Sumanthjb

Try to create a slicer to select the date range, and use the TOP n filter in the table visual to filter the top 250 product based on the sales value.

top 250.JPG


Paul Zheng _ Community Support Team
If this post helps, then consider Accept it as the solution to help other members find it faster.

amitchandak
Super User
Super User

@Sumanthjb, typically if you created a Rank as a

Rankx(all(Table[prodcut]), [product sold])

It means product range within any other group by, if nothing then product. If you choose the company, then the top 250 within the product.

If you want to force any subcategory of specific use thin Range

See example in

https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...

NamishB
Post Prodigy
Post Prodigy

Hi @Anonymous :

Can you share Sample data please? 

 

Thanks,

-Namish B

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.