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
Dclunie
Frequent Visitor

Date earlier than today

Hi all.

Apologies in advance novice user who just started using power bi desktop.

I need a way to report in a custom column called “ Date Status” with a text file based on criteria.

We have ten date columns that are all linked to 10 tasks, and these have a due date within them.

 

I need to query all columns at the same time and if any dates are in the past, the text in the row to read “Late” else “ On target”

 

Can anyone show me an example of this working.

 

Thanks

 

D

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Dclunie 

maybe you can try this

= Table.AddColumn(#"Changed Type", "Custom", each if List.MatchesAll(List.Skip(Record.ToList(_)),each   _> #date( Date.Year(DateTimeZone.LocalNow()),Date.Month(DateTimeZone.LocalNow()),Date.Day(DateTimeZone.LocalNow()))) then "Late" else "on target")

1.PNG

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
ryan_mayu
Super User
Super User

@Dclunie 

maybe you can try this

= Table.AddColumn(#"Changed Type", "Custom", each if List.MatchesAll(List.Skip(Record.ToList(_)),each   _> #date( Date.Year(DateTimeZone.LocalNow()),Date.Month(DateTimeZone.LocalNow()),Date.Day(DateTimeZone.LocalNow()))) then "Late" else "on target")

1.PNG

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.