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
pardeepd84
Helper III
Helper III

Multiple if statement if results are the same

Hi,

 

I have created a new column with the following formula, however it is not returning the results I require:

 

Over 10 minutes =
IF ( ISBLANK( [Actual Start Time] ), BLANK(), If(ABS([Planned Duration Minutes] - [Actual Duration Minutes]) = 0, "ok",
IF (ABS([Planned Duration Minutes] - [Actual Duration Minutes]) > (10/60)/24, "not", "ok")))
 
I need the formula to show:
  • where the planned duration minutes - actual duration minutes is over 10 minutes then enter "not" otherwise "enter "ok".  
  • Where the planned duration minutes - actual duration minutes is the same then enter "ok".

 

Please could you advise how to do this.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@pardeepd84 , if this is a numeric column this should work. Not sure why are you diving

 

IF ( ISBLANK( [Actual Start Time] ), BLANK(),
If(ABS([Planned Duration Minutes] - [Actual Duration Minutes]) = 0, "ok",
IF (ABS([Planned Duration Minutes] - [Actual Duration Minutes]) > 10 , "not", "ok")))

 

if it time - time then you have take minutes from that

example

IF ( ISBLANK( [Actual Start Time] ), BLANK(),
If( minute([Planned Duration Minutes] - [Actual Duration Minutes]) = 0, "ok",
IF (minute([Planned Duration Minutes] - [Actual Duration Minutes]) > 10 , "not", "ok")))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@pardeepd84 , if this is a numeric column this should work. Not sure why are you diving

 

IF ( ISBLANK( [Actual Start Time] ), BLANK(),
If(ABS([Planned Duration Minutes] - [Actual Duration Minutes]) = 0, "ok",
IF (ABS([Planned Duration Minutes] - [Actual Duration Minutes]) > 10 , "not", "ok")))

 

if it time - time then you have take minutes from that

example

IF ( ISBLANK( [Actual Start Time] ), BLANK(),
If( minute([Planned Duration Minutes] - [Actual Duration Minutes]) = 0, "ok",
IF (minute([Planned Duration Minutes] - [Actual Duration Minutes]) > 10 , "not", "ok")))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.