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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.