cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pardeepd84
Helper II
Helper II

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 IV
Super User IV

@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")))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

1 REPLY 1
amitchandak
Super User IV
Super User IV

@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")))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors