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
Anonymous
Not applicable

Find max value based on another column

Hi Experts

 

i am trying to find the maximum value based on a second column , cannot see the error in my formula...

 

Measure = CALCULATE(MAX(Client_Summary_[ManagementReferralsF2F]),FILTER(Client_Summary_,Client_Summary_[Division]=EARLIER(Client_Summary_[Division])))

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

In a MEASURE, typically you can not use EARLIER

 

Consider replacing EARLIER with SELECTEDVALUE


Regards
Zubair

Please try my custom visuals

View solution in original post

5 REPLIES 5
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

In a MEASURE, typically you can not use EARLIER

 

Consider replacing EARLIER with SELECTEDVALUE


Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

Hi Zubair

 

Slight change: i want to find the max value filtered on ClientName first then based on division next... I have a syn'd the fliter show the data show be for client ABC only......the desireed result Capture.PNGshould be 83.

@Anonymous

 

Try with

 

=
CALCULATE (
    MAX ( Client_Summary_[ManagementReferralsF2F] ),
    ALLEXCEPT (
        Client_Summary_,
        Client_Summary_[Division],
        Client_Summary_[ClientName]
    )
)

Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

Zubiar

 

I managed to solve the measure. Thanks

Anonymous
Not applicable

Hi Zubair

 

Slight change: i want to find the max value filtered on ClientName first then based on division next... I have a syn'd the fliter show the data show be for client ABC only......the desireed result should be 83.Capture.PNG

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.