The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have a table called App with three calculated columns Level1, Level2, Level3, Level4, Level5.
Level1 | Level2 | Level3 | Level4 | Level5 |
0 | 2 | 3 | 0 | 5 |
1 | 2 | 0 | 0 | 0 |
1 | 0 | 0 | 4 | 0 |
0 | 0 | 3 | 0 | 5 |
I need to write a calculated column formula to find the max of each row. For example: For row1: Max of 0,2,3,0,5 is 5 and likewise for all rows.
Solved! Go to Solution.
Thank you. The above formula won't work because Max allows only 2 arguements.
@parry2k provided the below solution and it worked.
Column = MAXX ( UNION ( { [Level1] }, { [Level2] }, { [Level3] }, { [Level4] }, { [Level5] } ), [Value] )
Thank you. The above formula won't work because Max allows only 2 arguements.
@parry2k provided the below solution and it worked.
Column = MAXX ( UNION ( { [Level1] }, { [Level2] }, { [Level3] }, { [Level4] }, { [Level5] } ), [Value] )
MaxRow = MAXX(App, MAX(App[Level1], App[Level2], App[Level3], App[Level4], App[Level5]))
Let me know if this works
User | Count |
---|---|
14 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
14 | |
8 | |
5 |