You need to sign in to do that
Don't have an account?
VDub
Color Coding Percent Change of Sales Formula
Hi,
I'm trying to color code my formula for percent change of YTD vs LYTD sales. If the percent change is negative it make it red and if it's positive make it green. I've been trying the stop lights but I would have to make another custom field instead of changing the color of the value. Is there anyway to do this?
Thanks, Vanessa
I'm trying to color code my formula for percent change of YTD vs LYTD sales. If the percent change is negative it make it red and if it's positive make it green. I've been trying the stop lights but I would have to make another custom field instead of changing the color of the value. Is there anyway to do this?
Thanks, Vanessa
IF((YTD_Sales__c - LYTD_Sales__c)/LYTD_Sales__c < 0, IMAGE("your_red_image_url"), IMAGE("your_green_image_url"))
That will display the green image if the percent change is 0. If you want to handle 0 percent change differently, you could do something like this:
IF((YTD_Sales__c - LYTD_Sales__c)/LYTD_Sales__c < 0, IMAGE("your_red_image_url"), IF((YTD_Sales__c - LYTD_Sales__c) /LYTD_Sales__c > 0, IMAGE("your_green_image_url"), IMAGE("your_zero_change_image_url")))
I don't want to insert an image I want to actually change the color of the value returned by the formula to red or green based on if it's negative or positive. See below. Is there anyway to do that?
YTD_Sales__c - LYTD_Sales__c)/LYTD_Sales__c + IF((YTD_Sales__c - LYTD_Sales__c)/LYTD_Sales__c < 0, IMAGE("your_red_image_url"), IF((YTD_Sales__c - LYTD_Sales__c) /LYTD_Sales__c > 0, IMAGE("your_green_image_url"), IMAGE("your_zero_change_image_url")))