Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Khushboo9966
Helper I
Helper I

How to find the max of rows from 5 different columns

How to find the max of rows from 5 different columns
49 seconds ago

I have a table called App with three calculated columns Level1, Level2, Level3, Level4, Level5. 

 

Level1Level2Level3Level4Level5
02305
12000
10040
00305

 

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.

1 ACCEPTED SOLUTION
Khushboo9966
Helper I
Helper I

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] )

 

 

View solution in original post

2 REPLIES 2
Khushboo9966
Helper I
Helper I

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] )

 

 

DallasBaba
Super User
Super User

@Khushboo9966 

MaxRow = MAXX(App, MAX(App[Level1], App[Level2], App[Level3], App[Level4], App[Level5]))

 

Let me know if this works

Best Regards,
Dallas.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.