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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
lynnzrae
Helper I
Helper I

Formula to incorporate only not blank cells

I want to create a column that returns if a project is expired.  I only want to apply this formula to rows that do not have a blank value under Permit Extension Date. 

If the Permit Extension Date is blank it should either return a blank or "not applicable" value. 

For those that have a permit extension date (is not blank), the value should return as expired if the permit extension date has passed (is less than today) and the doucmentation fo complete date is blank OR the documentation of completion date is after the permit extension date.  See below:

Permit Extension DateDocumentation of Completion DateExpired, Not Expired, Not Applicable
 6/23/2024Not Applicable
6/6/2025 Not Expired
5/3/2024 Expired
7/15/20246/1/2024Not Expired

This is the formula that I came up with so far but it is returning as expired when the permit extension date is blank

Permit Extension Expiration & Construction Incomplete =

IF(

    NOT(ISBLANK(TPermitExpiration[Permit Extension Date]))

    &&

    VALUE(TPermitExpiration[Permit Extension Date])< TPermitExpiration[Construction Documentation of Completion Date]

        || (

            ISBLANK ( TPermitExpiration[Construction Documentation of Completion Date] )

                && TPermitExpiration[Permit Extension Date] < TODAY()

           ),

            "Expired",

            "Not Expired"

)

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,@lynnzrae 

Your idea is very good. It's very close to the right result.

 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1720067983582.png

2.Create calculated column references:

status =
IF (
    ISBLANK ( 'TPermitExpiration'[Permit Extension Date] ),
    "Not Applicable",
    IF (
        'TPermitExpiration'[Permit Extension Date] > TODAY ()
            || (
                NOT ( ISBLANK ( 'TPermitExpiration'[Documentation of Completion Date] ) )
                    && 'TPermitExpiration'[Documentation of Completion Date] < TODAY ()
            ),
        "Not Expired",
        "Expired"
    )
)

3.Here's my final result, which I hope meets your requirements.

vlinyulumsft_1-1720068011970.png

If you have any new questions, please contact us.

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,@lynnzrae 

Your idea is very good. It's very close to the right result.

 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1720067983582.png

2.Create calculated column references:

status =
IF (
    ISBLANK ( 'TPermitExpiration'[Permit Extension Date] ),
    "Not Applicable",
    IF (
        'TPermitExpiration'[Permit Extension Date] > TODAY ()
            || (
                NOT ( ISBLANK ( 'TPermitExpiration'[Documentation of Completion Date] ) )
                    && 'TPermitExpiration'[Documentation of Completion Date] < TODAY ()
            ),
        "Not Expired",
        "Expired"
    )
)

3.Here's my final result, which I hope meets your requirements.

vlinyulumsft_1-1720068011970.png

If you have any new questions, please contact us.

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

This worked perfectly, thank you.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.