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
AW1976NOVA
Post Patron
Post Patron

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
Super User
Super User

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

 

 


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

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

 

 


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Awesome,

 

Thank you so much

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.