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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Removing duplicates and keeping the row with highest value

Hello everyone, I am stuck in a scenario.
I have made a table visual with Employee Name(Which is a column from a table) and Utilization Rate(which is a calculated measure). As given below :

Employee Name Utilization Rate
a 100.00%
b 100.00%
c 100.00%
c 0.00%
d 35.71%
e 0.00%
e 0.00%
e 0.00%
f 72.62%
f 70.24%
g 100.00%

 

From this table visual I want to remove the duplicated employee names. I want to keep only those rows with the highest Utilization Rate as shown below :

Employee Name Utilization Rate
a 100.00%
b 100.00%
c 100.00%
d 35.71%
e 0.00%
f 72.62%
g 100.00%

 

Here I want to remove the rows in red colour. As shown in the immage below :

Aditya_Meshram_0-1646207399763.png

Can anyone help me solve this problem?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

You can try to use the following measure to get the max Utilization Rate based on the current employee group:

Measure =
VAR cEName =
    VALUES ( 'Table'[Employee Name] )
RETURN
    MAXX (
        FILTER (
            SUMMARIZE (
                'Table',
                'Table'[Employee Name],
                "mURate", MAX ( 'Table'[Utilization Rate] )
            ),
            [Employee Name] IN cEName
        ),
        [mURate]
    )

Regards,

Xiaoxin Sheng

View solution in original post

7 REPLIES 7
CNENFRNL
Community Champion
Community Champion

You even don't need an explicit measure to achieve this,

CNENFRNL_0-1646231143502.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Anonymous
Not applicable

Hi @CNENFRNL thanks for your input
But since Uilization Rate is a measure I'm not getting these options.

Aditya_Meshram_0-1646290230846.png
Regards,
Aditya

BeaBF
Super User
Super User

@Anonymous You can create a calculated table as:

 

Tabella 2 = SUMMARIZE(SELECTCOLUMNS('Tabella (4)',
"Employee Name", 'Tabella (4)'[Employee Name]),
[Employee Name],
"Utilization Rate", MAX('Tabella (4)'[Utilization Rate]))
 
Where Tabella(4) is your native Table.
 
The result is the right table:
BeaBF_0-1646226884874.png

 

 
BF
Anonymous
Not applicable

HI @Anonymous,

You can try to use the following measure to get the max Utilization Rate based on the current employee group:

Measure =
VAR cEName =
    VALUES ( 'Table'[Employee Name] )
RETURN
    MAXX (
        FILTER (
            SUMMARIZE (
                'Table',
                'Table'[Employee Name],
                "mURate", MAX ( 'Table'[Utilization Rate] )
            ),
            [Employee Name] IN cEName
        ),
        [mURate]
    )

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi @BeaBF ,
since Utilization Rate is a measure, 
I'm not getting the option to aggregate it.

Aditya_Meshram_1-1646290836541.png

Anyways, thanks for your input.

Aditya

@Anonymous  can you paste the code of that measure?

 

BF

Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @Anonymous , we would need more details about the Data Model and DAX Measures to provide a clear solution.  It is likely that Many to One or equivalent is causing the issue.  But I am wondering if you have the following situation occuring.   How to show a name more than once in Power BI - YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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