Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.