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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Create a new measure based upon the max result of another created measure

Hi ,

 

I'm trying to create a new measure that will return the correct [ICD10 Mapping] based upon the [Member ID] and the Max [Plan Payment Amount] of each [Member ID].

 

It's important to note that each [Member ID] can and often does populate numerous times in the excel table 'Claim Data'.  Meaning, one [Member ID] could populate 2, 3, 100 or however many times with different [Plan Payment Amount]s.

 

Here is a table visual showing what I already have built:

12.PNG

 

I've already gone ahead and created a measure that returns the Highest [Plan Payment Amount] for each [Member ID]:

Max Plan Payment Amount = CALCULATE(MAX('Claim Data'[Plan Payment Amount]),ALLEXCEPT('Claim Data','Claim Data'[Member ID]))

 

I'd now like to create a new measure that returns the correct [ICD10 Mapping] result for each [Member ID]...with the Highest [Plan Payment Amount].

 

Here is a dummy dataset for an example:

Member ID     Plan Payment Amount     ICD10 Mapping 

0001               $40.00                              77PR

0001               $55.00                              42KN

0002               $30.00                              ZZBV1

0001               $100.00                            5R3S

0002               $20.00                              CC7T

0044               $450.00                            WQ56

 

The new measure should return the following:

Member ID     Plan Payment Amount     ICD10 Mapping

0001              $100.00                             5R3S

0002              $30.00                              ZZBV1

0044              $450.00                            WQ56

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous - I think you want Lookup Min/Max. https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Anonymous - I think you want Lookup Min/Max. https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Awesome,

 

Thank you so much

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors