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
united2win
Helper III
Helper III

Return Column Header from MAX Date

Hi,

 

I have the below table: I will need to add a column to reflect the status from a number dates

 

Service:                              Country:                 Pack to Agent                     Pack to Client                         New Column: Service Status

VAT Registration               Germany                     15/02/2019                      30/02/2019                                            Pack to Client

VAT Registration               Spain                           14/02/2019                      02/01/2019                                            Pack to Agent

VAT Registration               UK                               16/03/2019                      16/03/2019                                                       *?

 

*? What would happen if the dates are the same?

 

Any help will be greatly appreciated.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @united2win ,

 

Previous link is not working.. Here is updated one

 

Here

 

 

Thanks & Regards,

B V S S

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @united2win,

 

What is your desired output in that column. Please post that also

 

Thanks & Regards,

B V S S

Aplogises, there's a formatting error:

 

The new column would like this:

 

Service Status:

 

Pack Sent to Client

 

Pack Sent to Agent

 

Pack Sent to Client (This would take preference if the dates were the same)

Anonymous
Not applicable

Hi @united2win ,

 

Please try  if (or condition in your calculated column dax.. otherwise please send your calculated column formula i will modify it. Because i don't have system to try this

 

Thanks & Regards,

B V S S

Hi,

 

That's the issue, I'm fairly new to Power BI, so I don't really know what to use in the Calculated DAX formula. It's not like excel where I can copy and paste the formula (unfortunately)

 

Alex

Anonymous
Not applicable

Hi @united2win ,

 

Here i attached pbix file

Download this Pbix file 

 

 

Capture.JPG

 

Thanks & Regards,

B V S S

Anonymous
Not applicable

Hi @united2win ,

 

Previous link is not working.. Here is updated one

 

Here

 

 

Thanks & Regards,

B V S S

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.