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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
lynnzrae
Helper I
Helper I

a new column if one of several columns are "expired"

I would like to create a formula that reports out that a permit is expired if at least one of five columns below return an "expired" value.

Permit is expired = 

180 days till start expirationStart Date180 Days until end expirationEnd DateExtension Date
safe from expirationnot expiredexpiredexpiredNot applicable
expiredexpiredsafe from expirationnot expiredNot applicable
nearing expirationnot expiredsafe from expirationnot expirednot applicable
safe from expirationnot expirednearing expirationnot expiredNot applicable
safe from expirationnot expiredexpirednot expiredexpired

 

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from bhanu_gautam , please allow me to provide another insight: 
Hi  @lynnzrae ,

 

Here are the steps you can follow:

1. Create calculated column.

Way =
var _table=
UNION(
    DISTINCT('Table'[180 days till start expiration]),
    DISTINCT('Table'[Start Date]),
    DISTINCT('Table'[180 Days until end expiration]),
    DISTINCT('Table'[End Date]),
    DISTINCT('Table'[Extension Date]))
return
IF(
    "expired" in SELECTCOLUMNS(_table,"Test",[180 days till start expiration]),"expired")

2. Result:

vyangliumsft_0-1724823339508.png

 

Best Regards,

Liu Yang

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

3 REPLIES 3
Anonymous
Not applicable

Thanks for the reply from bhanu_gautam , please allow me to provide another insight: 
Hi  @lynnzrae ,

 

Here are the steps you can follow:

1. Create calculated column.

Way =
var _table=
UNION(
    DISTINCT('Table'[180 days till start expiration]),
    DISTINCT('Table'[Start Date]),
    DISTINCT('Table'[180 Days until end expiration]),
    DISTINCT('Table'[End Date]),
    DISTINCT('Table'[Extension Date]))
return
IF(
    "expired" in SELECTCOLUMNS(_table,"Test",[180 days till start expiration]),"expired")

2. Result:

vyangliumsft_0-1724823339508.png

 

Best Regards,

Liu Yang

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

bhanu_gautam
Super User
Super User

@lynnzrae , You can create a new measure using

 

DAX
PermitExpired =
IF (
OR (
[180 days till start expiration] = "expired",
[Start Date] = "expired",
[180 Days until end expiration] = "expired",
[End Date] = "expired",
[Extension Date] = "expired"
),
"Expired",
"Not Expired"
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Is there a formula for a new column vs a measure.  It doesn't want to do a measure b/c the 5 columns I am pulling from are based off of formulas.

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.