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.
Is there an easy way to create a measure which returns the MIN or MAX value of MULTIPLE calculated columns?
The other way for me could be unpivoting all my calculated columns and apply MIN formula to the unpivoting resulting column. I posted another question to ask how to unpivot multiple calculated columns since I'm able to unpivot only columns of the original datasource in the query editor, but not when I have calculated columns, if it could be useful to someone else...
Solved! Go to Solution.
Hi @AGo,
According to your description, you want to get the Max or Min value of MULTIPLE calculated columns, right? Suppose your sample data is like below, and the Max value returned should be 5.
If that is the case, you can refer to the below formula:
Measure = MAX ( MAX ( CALCULATE ( MAX ( Table2[Event1] ), ALL ( Table2 ) ), CALCULATE ( MAX ( Table2[Event2] ), ALL ( Table2 ) ) ), CALCULATE ( MAX ( Table2[Event3] ), ALL ( Table2 ) ) )
Thanks,
Yuliana Gu
Hi @AGo,
According to your description, you want to get the Max or Min value of MULTIPLE calculated columns, right? Suppose your sample data is like below, and the Max value returned should be 5.
If that is the case, you can refer to the below formula:
Measure = MAX ( MAX ( CALCULATE ( MAX ( Table2[Event1] ), ALL ( Table2 ) ), CALCULATE ( MAX ( Table2[Event2] ), ALL ( Table2 ) ) ), CALCULATE ( MAX ( Table2[Event3] ), ALL ( Table2 ) ) )
Thanks,
Yuliana Gu
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 |
---|---|
109 | |
100 | |
83 | |
76 | |
65 |
User | Count |
---|---|
120 | |
111 | |
94 | |
83 | |
77 |