cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
req7 Helper II
Helper II

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

Accepted Solutions
Super User IV
Super User IV

Re: New column with the value of the last column with values

@req7 ,

Try like

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





Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
In case it does not help, please provide additional information and mark me with @
My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP,
HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Super User! Linkedin


View solution in original post

3 REPLIES 3
Super User IV
Super User IV

Re: New column with the value of the last column with values

Hi @req7 

 

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

 

Super User IV
Super User IV

Re: New column with the value of the last column with values

@req7 ,

Try like

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





Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
In case it does not help, please provide additional information and mark me with @
My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP,
HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Super User! Linkedin


View solution in original post

req7 Helper II
Helper II

Re: New column with the value of the last column with values

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

Helpful resources

Announcements
‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors