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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.