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
DAXUser
Frequent Visitor

Display first 10 values as is and remaining row values with specific name

Hi ,

 

  There are many rows in my table. The Category name should be displayed in its current form for the first 10 rows. For the remaining records, starting with row 11, the Category should be displayed as "Others," and the remaining total values must be summed. The report connected with Live Connection

 

CategoryTotal
a30
b40
c50
d60
e70
f80
g90
h100
i110
j120
k130
l140
m150
n160

 

Expected Output

CategoryTotal
a30
b40
c50
d60
e70
f80
g90
h100
i110
j120
others580

 

Thanks

1 ACCEPTED SOLUTION
TomasAndersson
Solution Sage
Solution Sage

Hi!
Check out this guide: Display Top N items and Others in Power BI - Goodly

You will have to modify it according to your use case. For example, define what columns defines the sorting order, i.e. what will be the top 10 and what will be Other. 

Since you know that you want top 10, you don't have to bother about implementing the dynamic top N slicer.

 

Good luck!

View solution in original post

3 REPLIES 3
DAXUser
Frequent Visitor

@TomasAndersson 

This solved my problem. Thanks for the solution.

FreemanZ
Super User
Super User

hi @DAXUser 

try to create a calculated table with this:

Table = 
VAR _table1=
TOPN(
    10,
    data,
    [Total],    
    ASC
)
VAR _table2 =
EXCEPT(data, _table1)

VAR _table3 =
ROW(
    "Category", "Others",
    "Total", SUMX(_table2, data[Total])
)
RETURN
UNION(_table1, _table3)

 

it worked like this:

FreemanZ_0-1674139589769.png

 

TomasAndersson
Solution Sage
Solution Sage

Hi!
Check out this guide: Display Top N items and Others in Power BI - Goodly

You will have to modify it according to your use case. For example, define what columns defines the sorting order, i.e. what will be the top 10 and what will be Other. 

Since you know that you want top 10, you don't have to bother about implementing the dynamic top N slicer.

 

Good luck!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.