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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

String of Text and muliple IF Conditions for Column

Hi All,

 

I am trying to create a new column that creates a 'status' based on when an order should be made. I can get the one condition i.e. if order by date(schedule date- leadtime - 7 days for quality checks) < TODAY, then call this a 'shortage', however, I cannot find how to add multiple conditions. The first line runs okay and will insert blanks alongside 'Shortage's, however, I want there to be 3 conditions, not two.

 

amc189_0-1682607829093.png

What I am looking for is;

If Order date < Today = 'Shortage'

If Order date is between TODAY and TODAY+7 = 'Order in Next 7 Days'

If Order date is more than TODAY+8 = 'Consider Ordering'

 

Thank you!

1 ACCEPTED SOLUTION
ChrisMendoza
Resident Rockstar
Resident Rockstar

@Anonymous - try as:

Column =
IF (
    TableName[Order date] < TODAY (),
    "Shortage",
    IF (
        TableName[Order date] >= TODAY ()
            && TableName[Order date]
                <= TODAY () + 7,
        "Order within 7 Days",
        IF ( TableName[Order date] >= TODAY () + 8, "Considering" )
    )
)





Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

2 REPLIES 2
ChrisMendoza
Resident Rockstar
Resident Rockstar

@Anonymous - try as:

Column =
IF (
    TableName[Order date] < TODAY (),
    "Shortage",
    IF (
        TableName[Order date] >= TODAY ()
            && TableName[Order date]
                <= TODAY () + 7,
        "Order within 7 Days",
        IF ( TableName[Order date] >= TODAY () + 8, "Considering" )
    )
)





Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Anonymous
Not applicable

Amazing, that worked perfectly. Thanks so much!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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