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

My column isn't returning a value has it should

I have the following column command. 

 

To my knowledge, the way it is written, if the criteria is not met (in the command), my return value should be not expired.  Therefore in this column there should either be an "expired," or "not expired," value.  However, as you can see I am getting blanks where it should state "not expired." How do I need to adjust my command to get the value "not expired" to return when the "expired" criteria is not met?

 

Permit Start Date Expiration =

IF(

   ( TPermitExpiration[Permit Construction Start Date] < TPermitExpiration[Construction Work Commenced Date])

        || (

            ISBLANK ( TPermitExpiration[Construction Work Commenced Date] )

                && TPermitExpiration[Permit Construction Start Date] < TODAY()

           ),

             "Expired",

             "Not Expired"

)

 

Construction Work Commenced DatePermit Start Date Expiration in 180 DaysPermit Start Date ExpirationPermit Construction End Date
 Nearing Expiration 11/1/2024
 Safe From Expiration7/20/2028
 Safe From Expiration4/19/2028
10/1/2022Safe From Expiration5/19/2027
1 ACCEPTED SOLUTION
Gabry
Super User
Super User

Hello @lynnzrae ,

have you already tried like this?

IF(
OR(
TPermitExpiration[Permit Construction Start Date] < TPermitExpiration[Construction Work Commenced Date],
AND(
ISBLANK(TPermitExpiration[Construction Work Commenced Date]),
TPermitExpiration[Permit Construction Start Date] < TODAY()
)
),
"Expired",
"Not Expired"
)

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi, @lynnzrae 

 

Please refer to the screenshot.

vzhangtinmsft_0-1724830252196.png

Is this the output you expect?

 

Best Regards,

Community Support Team _Charlotte

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

Yes it is.  I got the text "Expired" but I do not get the text "Not Expired."  I can't see how your formula is different than what I provided.  What did you do differently to get the "Not Expired?"

Anonymous
Not applicable

Hi, @lynnzrae 

 

Please see the attachment. Hope it helps.

Column = 
IF(
   ( TPermitExpiration[Permit Start Date Expiration] < TPermitExpiration[Construction Work Commenced Date])
        || (
            ISBLANK ( TPermitExpiration[Construction Work Commenced Date] )
                && TPermitExpiration[Permit Start Date Expiration] < TODAY()
           ),
             "Expired",
             "Not Expired"
)

 

Best Regards,

Community Support Team _Charlotte

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

The text still isn't showing.  Could it be a setting somewhere?

Gabry
Super User
Super User

Hello @lynnzrae ,

have you already tried like this?

IF(
OR(
TPermitExpiration[Permit Construction Start Date] < TPermitExpiration[Construction Work Commenced Date],
AND(
ISBLANK(TPermitExpiration[Construction Work Commenced Date]),
TPermitExpiration[Permit Construction Start Date] < TODAY()
)
),
"Expired",
"Not Expired"
)

I realized it was a font setting but was there all along.  Thanks for the help.

 

unfortunately it is still showing as blank.  Although in either formulas it will filter as not expired

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.