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

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

Reply
Sidzx6r
Frequent Visitor

Conditional Nested IF Statement

Hello All

 

How do i write nested if statement column condition to replace blank values with "NoProgress" when schedule date is blank or null.

Calendar date column from calendar auto table has all days in a month. Calendar table &  schedule data table are connected by Date column , & schedule date table doesnt have all days. 

 

Attaching sample screenshot and sampel data.

 

Calendar DateScheduled DateTypeProductConditional
6/1/2024 0:00    
6/2/2024 0:00    
6/3/2024 0:006/3/2024 0:00ACotton InProgress
6/3/2024 0:006/3/2024 0:00ACounty InProgress
6/3/2024 0:006/3/2024 0:00ACrop InProgress
6/3/2024 0:006/3/2024 0:00AFats InProgress
6/3/2024 0:006/3/2024 0:00AGrain InProgress
6/4/2024 0:00    
6/5/2024 0:006/5/2024 0:00ABroiler InProgress
6/5/2024 0:006/5/2024 0:00ADairy InProgress
6/6/2024 0:00    
6/7/2024 0:006/7/2024 0:00APeanut InProgress
6/8/2024 0:00    
6/9/2024 0:00    
6/10/2024 0:006/10/2024 0:00ACrop InProgress
6/11/2024 0:00    
6/12/2024 0:006/12/2024 0:00ABroiler InProgress
6/12/2024 0:006/12/2024 0:00ACrop InProgress
6/13/2024 0:00    
6/14/2024 0:006/14/2024 0:00APeanut InProgress
6/14/2024 0:006/14/2024 0:00ATurkey InProgress
6/15/2024 0:00    
6/16/2024 0:00    
6/17/2024 0:006/17/2024 0:00ACrop InProgress
6/17/2024 0:006/17/2024 0:00APotato InProgress
6/18/2024 0:00    
6/19/2024 0:006/19/2024 0:00AHOLIDAYNoWork
6/20/2024 0:006/20/2024 0:00ABroilerInProgress
6/20/2024 0:006/20/2024 0:00ALivestock InProgress
6/21/2024 0:006/21/2024 0:00ACattle InProgress
6/21/2024 0:006/21/2024 0:00AMilk InProgress
6/21/2024 0:006/21/2024 0:00APeanut InProgress
6/22/2024 0:00    
6/23/2024 0:00    
6/24/2024 0:006/24/2024 0:00AChickensInProgress
6/24/2024 0:006/24/2024 0:00ACrop InProgress
6/24/2024 0:006/24/2024 0:00APoultry InProgress
6/25/2024 0:006/25/2024 0:00ACold InProgress
6/26/2024 0:006/26/2024 0:00ABroiler InProgress
6/26/2024 0:006/26/2024 0:00APeanut InProgress
6/27/2024 0:006/27/2024 0:00AHogs InProgress
6/28/2024 0:006/28/2024 0:00AAcreageInProgress
6/28/2024 0:006/28/2024 0:00AAgricultural InProgress
6/28/2024 0:006/28/2024 0:00AEgg InProgress
6/28/2024 0:006/28/2024 0:00AGrain InProgress
6/28/2024 0:006/28/2024 0:00APeanut InProgress
6/28/2024 0:006/28/2024 0:00ARice InProgress
6/28/2024 0:006/28/2024 0:00BAcreage 
6/29/2024 0:00    
6/30/2024 0:00    

 

3 ACCEPTED SOLUTIONS
rajendraongole1
Super User
Super User

Hi @Sidzx6r - Create a new column as below to check on scheduled date.

Conditional =
IF (
    ISBLANK(ScheduledT[Scheduled Date]),
    "NoProgress",
    IF (
        ScheduledT[Type] = "A" && ScheduledT[Product] <> "HOLIDAY",
        "InProgress",
        ""
    )
)

rajendraongole1_0-1722534497070.png

 

 

you can join the calendar and schedule tables based on date column 

 

Create merged table reflects the correct structure and that the conditional column shows "NoProgress" for dates without scheduled entries. 

 

Hope it works. 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

MNedix
Super User
Super User

@Sidzx6r 
Alternatively to @rajendraongole1 's solution, you can use a Switch function as below; the advantage of the Switch function is lower complexity and highly increased scalability (multiple conditions with ease of configuraiton):

 

New Conditional = 
SWITCH(
    TRUE(),
    ISBLANK(Sheet1[Scheduled Date]),"InProgress",
    Sheet1[Scheduled Date]="null","InProgress",
    Sheet1[Conditional]
)

 

In your example, you don't really need the "null" statement but I put it there just in case you encounter it in your data model. You can use as many conditions as you need (including && operators, for example for the Type B Products).

 

Best,

 



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

View solution in original post

@Sidzx6r it would be great if you marked an answer as the solution to your problem so other users can see it.

 

Best,

 



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

View solution in original post

3 REPLIES 3
MNedix
Super User
Super User

@Sidzx6r 
Alternatively to @rajendraongole1 's solution, you can use a Switch function as below; the advantage of the Switch function is lower complexity and highly increased scalability (multiple conditions with ease of configuraiton):

 

New Conditional = 
SWITCH(
    TRUE(),
    ISBLANK(Sheet1[Scheduled Date]),"InProgress",
    Sheet1[Scheduled Date]="null","InProgress",
    Sheet1[Conditional]
)

 

In your example, you don't really need the "null" statement but I put it there just in case you encounter it in your data model. You can use as many conditions as you need (including && operators, for example for the Type B Products).

 

Best,

 



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

@Sidzx6r it would be great if you marked an answer as the solution to your problem so other users can see it.

 

Best,

 



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,
rajendraongole1
Super User
Super User

Hi @Sidzx6r - Create a new column as below to check on scheduled date.

Conditional =
IF (
    ISBLANK(ScheduledT[Scheduled Date]),
    "NoProgress",
    IF (
        ScheduledT[Type] = "A" && ScheduledT[Product] <> "HOLIDAY",
        "InProgress",
        ""
    )
)

rajendraongole1_0-1722534497070.png

 

 

you can join the calendar and schedule tables based on date column 

 

Create merged table reflects the correct structure and that the conditional column shows "NoProgress" for dates without scheduled entries. 

 

Hope it works. 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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.