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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.