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
Anonymous
Not applicable

New column with the value of the last column with values

Hello everyone,  🙂

First, this is the structure of my table:

DATE_1DATE_2DATE_3
12/01/202012/05/2020 
12/01/2020  
12/05/2020 12/07/2020
12/05/202012/06/202012/08/2020
 12/08/2020 

 

I would like to create a new column in that table, showing the date of the last column with values ​​in order (from left to right).
This is an example of what the new column should look like:

DATE_1DATE_2DATE_3NEW_COLUMN
12/01/202012/05/2020 12/05/2020
12/01/2020  12/01/2020
12/05/2020 12/07/202012/07/2020
12/05/202012/06/202012/08/202012/08/2020
 12/08/2020 12/08/2020

Can someonde help me please?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

Try like

max(Table[DATE_1],max(Table[DATE_2],Table[DATE_3]))

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous ,

Try like

max(Table[DATE_1],max(Table[DATE_2],Table[DATE_3]))

Anonymous
Not applicable

Thanks @amitchandak 
That was exactly what I wanted!! 🙂

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can use COALESCE( )
https://docs.microsoft.com/en-us/dax/coalesce-function-dax

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

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.