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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
ngomes
Helper II
Helper II

TOP with subgroups

I have a sales table matrix grouped by customer and article, this table is a TOP 2 sales
Does anyone know how I can show the total sales of all customers who are not part of the TOP 2 in a separate line from the top?

TableTable

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @ngomes ,

Refer the following sample:

vluwangmsft_0-1653983264935.png

First ,create rank column:

rank = RANKX(FILTER('Table','Table'[TypeA]=EARLIER('Table'[TypeA])),'Table'[Value])

Then create the below measure:

test = IF(HASONEVALUE('Table'[TypeB]),MAX('Table'[Value]),CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[TypeA]=MAX('Table'[TypeA])&&'Table'[rank]>2)))

Create visual:

vluwangmsft_1-1653983316924.png

You could adjust base on your table and need.

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

View solution in original post

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @ngomes ,

Refer the following sample:

vluwangmsft_0-1653983264935.png

First ,create rank column:

rank = RANKX(FILTER('Table','Table'[TypeA]=EARLIER('Table'[TypeA])),'Table'[Value])

Then create the below measure:

test = IF(HASONEVALUE('Table'[TypeB]),MAX('Table'[Value]),CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[TypeA]=MAX('Table'[TypeA])&&'Table'[rank]>2)))

Create visual:

vluwangmsft_1-1653983316924.png

You could adjust base on your table and need.

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

Anonymous
Not applicable

HI


Everything is explain on this video

https://www.youtube.com/watch?v=nVvlEHKr_0o&t=753s

hello James

I know the video
This example does not have groups and what I am asking is how to obtain the value of the remaining customers knowing that I have the group customers articles/services

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.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.