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

Only show blank dates AND dates earlier than current day.

Just when I start thinking I'm getting a grasp on using PowerBI I run into another stupid problem that stumps me.

 

I have a table full of end dates for projects. Some of them however are blank.

 

If I wanted a column to show the blank dates AND those dates whose end date has already passed what would be formula?

 

I played with it for a while and got this but it isn't working.

 

Date2 = if (PROJECTS[ENDDATE] = blank() || TODAY() < PROJECTS[ENDDATE]), PROJECTS[ENDDATE])

 

As always thanks for your help.

1 ACCEPTED SOLUTION
v-xjiin-msft
Solution Sage
Solution Sage

@qwaszx55

 

In your scenario, you want create a column to display the EndDate which is blank or earlier than current day. Right?

 

To achieve your requirement, you can try following expression:

 

Column =
IF (
    OR ( PROJECTS[ENDDATE] = BLANK (), TODAY () > PROJECTS[ENDDATE] ),
    PROJECTS[ENDDATE]
)

11.PNG

 

Thanks,
Xi Jin.

View solution in original post

1 REPLY 1
v-xjiin-msft
Solution Sage
Solution Sage

@qwaszx55

 

In your scenario, you want create a column to display the EndDate which is blank or earlier than current day. Right?

 

To achieve your requirement, you can try following expression:

 

Column =
IF (
    OR ( PROJECTS[ENDDATE] = BLANK (), TODAY () > PROJECTS[ENDDATE] ),
    PROJECTS[ENDDATE]
)

11.PNG

 

Thanks,
Xi Jin.

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.