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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

IF and date Function

  1. Outstanding Action Days =IF(AND(Status="C”),TODAY()-Response Date,"")

  2. Outstanding Status=IF(AND(Outstanding Action Days="")," No Action Required",IF(AND(Outstanding Action Days<=21),"Outstanding Actions",IF(AND(Outstanding Action Days>21),"Overdue Actions","Check")))

Please i want calculated coumns based on above statment.

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Create columns

Capture17.JPG

Outstanding Action Days = IF([Status]="C",DATEDIFF([Reponse Date],TODAY(),DAY))

Outstanding Status =
IF (
    [Outstanding Action Days] = BLANK (),
    "No Action Required",
    IF ( [Outstanding Action Days] <= 21, "Outstanding Actions", "Overdue Actions" )
)

there is no "check" value matched in the condition.

If you need "check" to show, please share more details(data example/screenshots) for further analysis.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
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
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Create columns

Capture17.JPG

Outstanding Action Days = IF([Status]="C",DATEDIFF([Reponse Date],TODAY(),DAY))

Outstanding Status =
IF (
    [Outstanding Action Days] = BLANK (),
    "No Action Required",
    IF ( [Outstanding Action Days] <= 21, "Outstanding Actions", "Overdue Actions" )
)

there is no "check" value matched in the condition.

If you need "check" to show, please share more details(data example/screenshots) for further analysis.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
JirkaZ
Solution Specialist
Solution Specialist

@Anonymous You can use DATEDIFF in your formula to calculate the difference between two dates. Also I would recommend using SWITCH in the Outstanding Status definition rathern than IF.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors