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.
Hello Community.
I would like to learn how to create a new column with the maximum value of several columns. is there any formula? because IF I use variables and IF linked, if I have to compare too many columns is a hell.
Thank you in advance
Col A | Col B | Col C | Col D | Result_max | |
0,91 | 0,08 | 0,83 | 0,21 | 0,91 | |
0,37 | 0,31 | 0,31 | 0,74 | 0,74 | |
0,40 | 0,01 | 0,03 | 0,38 | 0,40 | |
0,31 | 0,88 | 0,20 | 0,62 | 0,88 |
Solved! Go to Solution.
I would do it in the query too, but, if you can't, here is how to do it in a DAX column.
MaxCol = MAXX({Table[ColA], Table[ColB], Table[ColC], Table[ColD]}, [Value])
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I would do it in the query too, but, if you can't, here is how to do it in a DAX column.
MaxCol = MAXX({Table[ColA], Table[ColB], Table[ColC], Table[ColD]}, [Value])
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Many thanks, very elegant and simple solution.
You can do this through Power Query.
Go to Power Query
Select the relevant columns
From Menu on top Go to Add Column --> Click Statistics Button --> Select Max
The function used is List.Max
thank you but these columns are calculated and do not show in power query
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 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |