Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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!
Solved! Go to Solution.
Hi @webportal
Yes it can handle that.
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
Proud to be a 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
Proud to be a Super User!
Hi @webportal
Yes it can handle that.
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
Proud to be a 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
Proud to be a Super User!