cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sas028
Frequent Visitor

DAX Formula that sums the max values

Hi all,

 

I'm trying to use dax formulas to solve the total of the max value options for certain purchase numbers by supplier. 

 

Please find example data below:

Supplier NamePurchase NumberOptionTotal base Price
Supplier AGEO012Option 120
Supplier AGEO043Option 130
Supplier AGEO043Option 235
Supplier AGEO045Option 110
Supplier AGEO046Option 112
Supplier AGEO046Option 215
Supplier AGEO055Option 120
Supplier AGEO055Option 230
Supplier BGEO037Option 130
Supplier BGEO037Option 220
Supplier BGEO043Option 135
Supplier BGEO043Option 236

 

Resulting Formula:

Supplier NameMax Quote Value
Supplier A110
Supplier B66

 

Essentially what the formula will do for each purchase item the supplier will provide, it finds the max value between option 1 and option 2 and sum those values to find the max sum value. Some suppliers only provide 1 option. 

 

Hope this makes sense. Any help would be greatly appreciated. 

 

Thanks! 

1 ACCEPTED SOLUTION
Ahmedx
Solution Sage
Solution Sage

2 REPLIES 2
sas028
Frequent Visitor

That worked perfectly. Thank you! 

Ahmedx
Solution Sage
Solution Sage

plse try this

Sample PBIX file attached

https://1drv.ms/u/s!AiUZ0Ws7G26RiDyNI_N_kgTJPN1G?e=opJCmD

Screen Capture #1188.png

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors