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 August 31st. Request your voucher.

Reply
jmelizalde
New Member

Max in column

I have 6 columns with difernts dates, this reprecents diferents activityes for the same proyect what i want is create a column that calulate the Max of this diferent Columns

The funtion Max doesnt work because this is a calulation for date in a column not data between columns.

also im traing with variable and conditional code but still not success.

jmelizalde_0-1647363720226.png

 

is there oter funtion than can Help me

is Excel should be like that

jmelizalde_2-1647364093415.png

 

 

1 ACCEPTED SOLUTION

Hi:

I'm pretty sure you need to unpivot here as MAX won't take more than a couple of columns.

Please review my solution for this instance.

View solution in original post

9 REPLIES 9
Whitewater100
Solution Sage
Solution Sage

High:

If you go to transform data and click on just the player column and under transfor you can look for unpivot columns and choose Unpivot Other Columns. It should like this after that operation;

Whitewater100_0-1647366458089.png

 

 

 

Then the measure is easy:

High Date = MAX(HighDate[Value])
Whitewater100_1-1647366505681.png

 

Hi:

I'm pretty sure you need to unpivot here as MAX won't take more than a couple of columns.

Please review my solution for this instance.

tamerj1
Super User
Super User

Hi @jmelizalde 

can please explain more why MAX did not work? What code did you try? Are you trying to create a measure or a calculated column?

Im try to create a calculet column comparind the data of other 6 columns with date and i want to know the lasted date and put in the new calulate columns, as i show in the Excel example.

 

Im creating a cycle time report with start proyect date and i want the date of the last activity compled thats why i need a caluclated colunm with the MAX value of 6 column of the same record

This is just one of the differents ways that i already try to get this column, asign variable to the column then with some conditional function to evaluete each one versus the other

 

jmelizalde_0-1647366991434.png

 

Hi @jmelizalde 

the code should simply be 

MAX ( table[column1], table[column2], etc. )

MAX only allow 2 arguments

jmelizalde_0-1647371839412.png

 

@jmelizalde 
You are absolutely right. I feel so stupid 🙂
No worries while @Whitewater100 is in town. He never misses.
Have a great day!

sorry tamerj I did not know you were in the midst of helping!

@Whitewater100 

Don't misunderstand me. Am not trying to book this post snd never tried to book any other post. This is an open platform where everyone has the absolute right to participate in any post. 
Back to this post, I was looking into this through my phone and started wondering why the MAX between the columns did not work while it siply should. 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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