Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Not applicable

largets 4 with multiple same values

Hi All!

I am currently trying to do a sum of the four largets points in a column. My problem is, that I have multiple rows with the same amount of values, and i do only want to sum the top four rows, not the top four values. In the below I would like to get a sum of 125 and not 173.


I have also assed, that I cannot create a new table with distinct, as the first four rows in principle could be the same number. 


Can you help with this problem?




Not applicable

Hi, Mahyartf
The measure does not quit work, as in the below scenario it return 119 insted of 120 which is the correct number: 




Memorable Member
Memorable Member


Please use below measure for distinct top N rows sum :

SumTopN =
CALCULATE( sumx(TOPN(4, VALUES(Sheet119[Number]), Sheet119[Number],DESC), Sheet119[Number]))


Appritiate your Kudos and please mark it as a solution if it helps you .


Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors