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

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

Reply
webportal
Impactful Individual
Impactful Individual

Get the minimum value of multiple variables

MyColumn =
VAR1 = ...

VAR2 = ...

VAR3 = ...

VAR4 = ...

 

I want to get the minimum value of all these variables excluding empty values.

 

MIN only takes two arguments.

 

Nesting is boring.

 

Is there a better way?

 

Thank you!

1 ACCEPTED SOLUTION

Hi @webportal 

Yes it can handle that.

blnk11.png

Measure = 

VAR a = 8
VAR b = BLANK()
VAR c = 21
VAR d = 5

VAR tab = {(a),(b),(c),(d)}

RETURN MINX(tab,[Value])

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

5 REPLIES 5
PhilipTreacy
Super User
Super User

Hi @webportal 

Define empty!  If its an empty string then using MIN won't work as hoped and you mentioned MIN in the qs so assumed we were dealing with numbers.

It will discount BLANK values.

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


@PhilipTreacyExactly.

By empty, I mean ISBLANK(VAR) = True

 

Hi @webportal 

Yes it can handle that.

blnk11.png

Measure = 

VAR a = 8
VAR b = BLANK()
VAR c = 21
VAR d = 5

VAR tab = {(a),(b),(c),(d)}

RETURN MINX(tab,[Value])

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


webportal
Impactful Individual
Impactful Individual

@PhilipTreacyThank you, that solution also disconsiders empty values, right?

PhilipTreacy
Super User
Super User

Hi @webportal 

Try this

 

 

Measure = 

VAR a = 3
VAR b = 4
VAR c = 2
VAR d = 5

VAR tab = {(a),(b),(c),(d)}

RETURN MINX(tab,[Value])

 

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.