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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Wael03
Helper I
Helper I

Aggregate rows in a table

Hello,

 

I have a dataset displaying the name of a company, his total amount of transactions, and the total count of transaction as you can see here : 

Wael03_0-1681889916686.png

In total I have more than a hundred rows, what I would like to do is to display the first 20 rows in the table and aggregate all the other rows as "others" by summing the tran amount and sum tran amount. 

Do you know how I could do that ? 

Thank you in advance !

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Wael03 ,

 

You may try to add a top n filter in Power BI.

Please kindly refer to

Add a top or bottom n records filter in Microsoft Power BI | TechRepublic

If you also want the bottom row to display the other, you need to create a separate table with the sorted numbers and "other", and then display the results with a SWITCH function to match them.

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Wael03 ,

 

You may try to add a top n filter in Power BI.

Please kindly refer to

Add a top or bottom n records filter in Microsoft Power BI | TechRepublic

If you also want the bottom row to display the other, you need to create a separate table with the sorted numbers and "other", and then display the results with a SWITCH function to match them.

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.