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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Khushboo9966
Helper II
Helper II

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 II
Helper II

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 II
Helper II

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
Skilled Sharer
Skilled Sharer

@Khushboo9966 

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

 

Let me know if this works

Thanks
Dallas

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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