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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

undefined

When in Matrix we put the branch nad customer by revenue and we want to top 5 customer by revenue each branch how will we do that?

2 REPLIES 2
Adamboer
Responsive Resident
Responsive Resident

To show the top 5 customers by revenue for each branch in a matrix, you can follow these steps:

  1. Add the Branch and Customer columns to the matrix.

  2. Add the Revenue measure to the matrix.

  3. Click on the Revenue measure in the Values pane and select "Value Field Settings."

  4. In the "Value Field Settings" window, select the "Advanced" option.

  5. In the "Advanced" window, select the "By Category" option.

  6. In the "By Category" window, select the "Top" option and set the value to 5.

  7. Select the "Branch" column in the matrix.

  8. In the "Visualizations" pane, click on the "Format" button.

  9. In the "Format" window, select the "Top N" option and set the value to 5.

This will show the top 5 customers by revenue for each branch in the matrix. The matrix will be sorted by revenue, with the top 5 customers for each branch displayed.

amitchandak
Super User
Super User

@Anonymous , use TOPN measure

 

calculate([revenue], TOPN(5,allselected(Table[Customer]), [Revenue],desc))

 

Assuming revenue is a measure

 

You can use TOPN/Window

Dynamic TOPN using TOPN/Window and Numeric parameter: https://youtu.be/vm2mdEioQPQ

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.