Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
72 | |
37 | |
31 | |
26 |
User | Count |
---|---|
95 | |
50 | |
43 | |
40 | |
35 |