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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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