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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.