Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |