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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors