cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kaney1 New Member
New Member

Multiple IF statements with multiple date columns

I am trying to create a single column to flag contract review status.  I want the query to first check the "Final Review Date" for a date and display as "Final Review Completed" if a date is entered.  If there is no date populated in the "Final Review Date" column, I want the query to check the "Initial Review Date" column for a date and display as "Initial Review Completed" if there is a date entered.  If neither date column displays a date, I want it to display "Not Reviewed".   I am not sure how to write all of these conditions in a single column.

 

Any help is greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Nathaniel_C Super Contributor
Super Contributor

Re: Multiple IF statements with multiple date columns

Hi @Kaney1 ,

Review =
IF (
    ISBLANK ( Dates[Final Review Date] ),
    IF (
        ISBLANK ( Dates[Initial Review Date] ),
        "Not Reviewed",
        "Initial Review Completed"
    ),
    "Final Review Completed"
)


reviewc.PNG

 


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

View solution in original post

2 REPLIES 2
Highlighted
Nathaniel_C Super Contributor
Super Contributor

Re: Multiple IF statements with multiple date columns

Hi @Kaney1 ,

Review =
IF (
    ISBLANK ( Dates[Final Review Date] ),
    IF (
        ISBLANK ( Dates[Initial Review Date] ),
        "Not Reviewed",
        "Initial Review Completed"
    ),
    "Final Review Completed"
)


reviewc.PNG

 


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

View solution in original post

Nathaniel_C Super Contributor
Super Contributor

Re: Multiple IF statements with multiple date columns

Hi @Kaney1 ,

Or you can do this in Power Query which is less drain on memory. Go to Power Query, Add Column tab, Custom Column.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
custom column.PNG

 

custom column2.PNG

 

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors (Last 30 Days)