function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
emikemik 

cant pass App Customization Specialist challenge 2

Hello!
 As the title says I cant pass this challenge, I get this fault:

 

User-added image
I am sure that the logic i use in the formula is correct, or at least is one version of what does what is asked for.

Here is the formula I am using right now:

IF(Desired_of_Volunteers__c - Shifts_Taken__c > 0, 
Desired_of_Volunteers__c - Shifts_Taken__c, 
0)

I have also tried with :

IF((Desired_of_Volunteers__c - Shifts_Taken__c) > 0, 
(Desired_of_Volunteers__c - Shifts_Taken__c), 
0)
MAX(​​​​​​(Desired_of_Volunteers__c - Shifts_Taken__c) > 0)
and
MAX(​​​​​​Desired_of_Volunteers__c - Shifts_Taken__c > 0)

And some other versions with and without parantheses.

I have scanned through pretty much all blog posts and forum threads I have found and tried all the stuff everyone said but its simply just not working.

I have also check the fields the formula is using and they seem correct.

I did also check out a video of a guy showing step by step how to do this part of the superbadge in a ~50 min video, he spent the first 15 minutes doing stuff that seemed to work until he got up unto this problem where he got stuck and spent ~40 minutes trying to solve the issue but in the end giving up and pressing "stop recording" and that was that.

It seems like I will have to skip this superbadge for now..

Any help appreciated!

Ruchika BishtRuchika Bisht
Hi Emik,
I have passed 2nd step and using the below formula, please try this
IF((Desired_of_Volunteers__c  -  Shifts_Taken__c)<=0, 0,(Desired_of_Volunteers__c  -  Shifts_Taken__c))
Your logic is correct too, it's just Trailhead is checking other way round :).