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

Maximize a function in DAX

Hello all, 

 

 

Do you know if we can with DAX crete maximize or minimize functions based on conditions? I´ve tried everythin, and i looked in Internet and i didn´t found anything.

 

I want to find the Maximun value of one parameter that i created (from 0 to 1 plus 1 I.e 1.16%) that makes my Budget - Cost more close to 0.

It could be great if we can add to our datamodels that kind of stuff.

Thank you!!   


1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous

 

If you want to get the maximize/minimize value from condition, I think you can convert this formula and use this condition as the filter.

For example:

Original= IF(Table[Column1]>0,max(table[Amount]),0)
↓
New= Calculcate(max(table[Amount]),FILTER(ALL(Table),Table[Column1]>0))

 

If above not help, can you please provide some sample data? 

 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous

 

If you want to get the maximize/minimize value from condition, I think you can convert this formula and use this condition as the filter.

For example:

Original= IF(Table[Column1]>0,max(table[Amount]),0)
↓
New= Calculcate(max(table[Amount]),FILTER(ALL(Table),Table[Column1]>0))

 

If above not help, can you please provide some sample data? 

 

Regards,

Xiaoxin Sheng

Greg_Deckler
Community Champion
Community Champion

I would create an Enter Data query with the values that you want to analyze and then create a column or measure that does your calculation and then plot that. I may not be understanding what you are going for. You can also maybe take a look at the new "What If" parameters that they added to Power BI in August.



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...

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.