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

True/False in a new field after comparing two dates

Hi all, thank you in advance for your assistance.

 

I have one dataset bringing two dates: Due Date and Done Date. I need to compare the two dates. If the job was done on the same month/year of due date is true, if not False. As new column.

Done date     Due date      True/False

Jun.09.2013   Jun.12.2013  True

Jun.12.2013   Jul.15.2013    False

 

Regards

Jose Milhazes

2 ACCEPTED SOLUTIONS
RolandsP
Resolver IV
Resolver IV

One way how to get this would be:

 

True/False = IF ( CONCATENATE(MONTH(Sheet1[Due date]), YEAR(Sheet1[Due date])) = CONCATENATE(MONTH(Sheet1[Done date]), YEAR(Sheet1[Due date])), "True", "False")

View solution in original post

Anonymous
Not applicable

Did work thank you!!

View solution in original post

2 REPLIES 2
RolandsP
Resolver IV
Resolver IV

One way how to get this would be:

 

True/False = IF ( CONCATENATE(MONTH(Sheet1[Due date]), YEAR(Sheet1[Due date])) = CONCATENATE(MONTH(Sheet1[Done date]), YEAR(Sheet1[Due date])), "True", "False")

Anonymous
Not applicable

Did work thank you!!

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.