Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
I have created three variables that do a calculation and return a single value. I now need to figure out which of these thress is the lowest but over 0.
Let's say I have:
var No1 = 2
var No2 = 0
var No3 = 6
I want to declare a variable that returns No1 in the above case as it is the lowest value out of the three that is over 0.
I'll need this variable for a calculation later on in my code.
Solved! Go to Solution.
I found a (very ugly) solution:
@Anonymous
Something like this ..May be
var No1 = 2
var No2 = 0
var No3 = 6
VAR lowest=MINX(Filter({No1,No2,No3},[Value]>0),[Value])
What is [Value] refering to in this formula?
@Anonymous
When we create a table manually like { "a","b"}, the column name of the that table is "Value"
I found a (very ugly) solution:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.