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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sridharbabu
Helper I
Helper I

how to show top 50 records in a table in power bi contains columns and measures and slicers

in power bi having partno,location,bu slicers and table with partno,location,measure1,measure2,measure3. measure3 in ascending order. How to show top 50 records based on measure3. andto add serial number for those records. 1 to 50. how to achieve this. used rankx, of having duplicate partno and measure3 showing same number for the records, any other alternate method to show 1 to 50. irrespective of duplicate partno and measure3.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

= SUMX(
    TOPN( 10,
      SUMMARIZE( TableName, TableName[partno], <nextcolumn>, <nextColumn>, etc.
    "TotalSales", SUM(TableName[Value]) ), [TotalVaule], DESC ), [TotalValue]
)

View solution in original post

1 REPLY 1
Anonymous
Not applicable

= SUMX(
    TOPN( 10,
      SUMMARIZE( TableName, TableName[partno], <nextcolumn>, <nextColumn>, etc.
    "TotalSales", SUM(TableName[Value]) ), [TotalVaule], DESC ), [TotalValue]
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.