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 guys,
I need to built a column that the shows the min of datadiff beteween 5 columns, like:
Is the any way can show the min of thoso 5 variables?
Thanks
Solved! Go to Solution.
Hi. Well this is a tricky one. You can use a lot of IF statements or you can build like a table with those and then use MIN. For example:
MINX(
UNION(
ROW("@VirtualColumn", a),
ROW("@VirtualColumn", b),
ROW("@VirtualColumn", c),
ROW("@VirtualColumn", d),
ROW("@VirtualColumn", e)
), [@VirtualColumn]
)
That might be a way of avoid IF statement to get the minimun of the variables.
I hope that helps,
Happy to help!
Hi. Well this is a tricky one. You can use a lot of IF statements or you can build like a table with those and then use MIN. For example:
MINX(
UNION(
ROW("@VirtualColumn", a),
ROW("@VirtualColumn", b),
ROW("@VirtualColumn", c),
ROW("@VirtualColumn", d),
ROW("@VirtualColumn", e)
), [@VirtualColumn]
)
That might be a way of avoid IF statement to get the minimun of the variables.
I hope that helps,
Happy to help!
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.