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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
BharathM
Helper IV
Helper IV

Remove Duplicate Id and retrieve max

Hi Everyone
I need a measure to retreve the max of ID based on max column and date 

BharathM_0-1679054400376.png


I have ID,MAX,DATE columns here my requirement is to remove the duplicate ID's based on max column

should show only the max of id and date 

Desired Output 

BharathM_2-1679054700079.png


But one more thing i want to remove the max column in visual please give me suggestion for that 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @BharathM 
Please place the following measure in the filter pane of the table visual, select "is not blank" and apply the filter

FilterMeasure =
VAR MaxMax =
    CALCULATE ( MAX ( 'Table'[MAX] ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
RETURN
    COUNTROWS ( FILTER ( 'Table', 'Table'[MAX] = MaxMax ) )

 

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @BharathM 
Please place the following measure in the filter pane of the table visual, select "is not blank" and apply the filter

FilterMeasure =
VAR MaxMax =
    CALCULATE ( MAX ( 'Table'[MAX] ), ALLEXCEPT ( 'Table', 'Table'[ID] ) )
RETURN
    COUNTROWS ( FILTER ( 'Table', 'Table'[MAX] = MaxMax ) )

 

Thank You so much dude its working 
Again Thanks for speed reply

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors