SlideShare a Scribd company logo
1 of 39
Download to read offline
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Thanks for joining today’s webinar 
Formula and Analytics Tips & Tricks 
With Steve Molis (SteveMo)
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Safe Habah Statement
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
•Using the ISPICKVAL and CASE Functions 
•Creating an Opportunity Rollback Validation Rule 
•Using the TEXT Function to convert Picklist Values * No Animals Were Harmed in the Making of These Formulas 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Formula and Analytics Tips & Tricks 
•How to block Account Create via Lead Convert 
•Counting Multi-Select Picklist Values* 
•Summarize Checkbox Fields 
•Create Dynamic Month to Date Reports 
* Some Animals Were Harmed in the Making of These Formulas
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Function: ISPICKVAL (aka “old faithful”) 
Description: Determines if the value of a picklist field is equal to a text literal you specify. 
Example: 
IF(ISPICKVAL(Weather, "Zombies!"), "RUN!!!", 
IF(ISPICKVAL(Weather, "HOT"), "Go Swimming", 
IF(ISPICKVAL(Weather, "WARM"), “Have a picnic", 
IF(ISPICKVAL(Weather, "COLD"), "Sit by the fire", 
"Send out for Pizza")))) 
Function: CASE 
Description: Checks a given expression against a series of values. 
Example: 
CASE(Weather, 
"Zombies!", "RUN!!!", 
"HOT", "Go Swimming", 
"WARM", “Have a picnic", 
"COLD", "Sit by the fire", 
"Send out for Pizza") 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Business Requirement 
Prevent user from changing the Opportunity Stage to a previous Opportunity Stage 
Solution 
Use a Validation Rule to evaluate current Opportunity Stage and compare it to the previous Opportunity Stage 
Fields Referenced 
Opportunity: StageName 
Functions and Operators Used 
CASE 
PRIORVALUE 
< 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
CASE( StageName , 
"Prospecting", 1, 
"Qualification", 2, 
"Needs Analysis", 3, 
"Value Proposition", 4, 
"Proposal/Price Quote", 5, 
"Negotiation/Review", 6, 
"Closed - Won", 7, 
"Closed - Lost", 7, 
0) 
< 
CASE(PRIORVALUE(StageName), 
"Prospecting", 1, 
"Qualification", 2, 
"Needs Analysis", 3, 
"Value Proposition", 4, 
"Proposal/Price Quote", 5, 
"Negotiation/Review", 6, 
"Closed - Won", 7, 
"Closed - Lost", 7, 
0) 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Function: 
TEXT 
Description: 
Converts picklist values to text in Validation Rules, Formula Fields, and Workflow Field Updates. 
So that you can do stuff like this… 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
•TEXT 
•Operators: > < = >= <= <> 
•ISBLANK 
•VALUE 
•BEGINS 
•CONTAINS 
•LEFT/RIGHT 
•FIND/SUBSTITUTE 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Problem: 
Make a custom picklist field called “Loss Reason” required if the Opportunity Stage is Closed/Lost. 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Solution: 
Create a Validation Rule 
Formula: 
AND( 
TEXT(StageName) = "Closed Lost", 
ISBLANK(TEXT(Loss_Reason__c))) 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Problem: 
Calculate the Opportunity 
Discount Amount from 
Discount% (a custom 
picklist field) 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Solution: 
Create a custom field 
Datatype: Formula 
Result: Currency 
Formula: 
Amount * 
(VALUE(TEXT( Discount_Pct__c )) / 100) 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Tip #2: 
Create a custom Enhanced List View or Report to double-check your Formulas 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Problem: 
Require priority 1-3 for 
any “Existing 
Customer” 
opportunities. 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Solution: 
Create a Validation Rule 
Formula: 
AND( 
BEGINS(TEXT(Type),"Existing"), 
VALUE(TEXT( Priority__c )) > 3)) 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Problem: 
Do not allow “Renewal” Cases for Inactive Accounts 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Solution: Create a Validation Rule Formula: AND( Account.Active__c = FALSE, CONTAINS( TEXT(Status) , "Renewal")) 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Problem: 
Extract the Numeric Value from the end of Picklist Values that contain mixed length text characters. 
Use Case: 
Approval Processes, Workflow Rules, Validation Rules, Formula Fields. 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
CASE Formula: 
CASE( SLA__c , 
"Diamond 5.0", 5.0, 
"Platinum 4.0", 4.0, 
"Gold 2.5", 2.5, 
"Silver 1.5", 1.5, 
"Bronze 0.5", 0.5, 
0) 
Compiled size: 
5 Values = 326 bytes 
10 Values = 426 bytes 
Nested IF Formula: 
IF(ISPICKVAL(SLA__c ,"Diamond 5.0"), 5.0, 
IF(ISPICKVAL(SLA__c ,"Platinum 4.0"), 4.0, 
IF(ISPICKVAL(SLA__c ,"Gold 2.5"), 2.5, 
IF(ISPICKVAL(SLA__c ,"Silver 1.5"), 1.5, 
IF(ISPICKVAL(SLA__c ,"Bronze 0.5"), 0.5, 
0))))) 
Compiled size: 
5 Values = 465 bytes 
10 Values = 950 bytes 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Solution: 
Formula: 
VALUE( RIGHT ( TEXT ( SLA__c ), 3 )) 
Compiled size: 280 bytes 
•Use the TEXT function to convert the Picklist Value to a Text String. 
•Then use the RIGHT function to extract the last 3 characters or the Text String. 
•Then use the VALUE function to convert the last 3 characters to a Numeric Value. 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Field Name: Bottles of Beer on the Wall 
Dataype: Picklist 
100 Values: 
100 - Bottles of Beer 
99 - Bottles of Beer 
98 - Bottles of Beer 
97 - Bottles of Beer 
96 - Bottles of Beer 
95 - Bottles of Beer 
94 - Bottles of Beer … 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Dataype: Formula 
Result: Number 
Formula: 
VALUE(TRIM(LEFT(TEXT(Bottles_of_Beer_on_the_Wall__c), 
FIND(" - ", TEXT(Bottles_of_Beer_on_the_Wall__c))))) 
Compiled size: 
ISPICKVAL = 7,602 characters 
CASE = 6,478 bytes 
TEXT = 546 bytes 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
> 1 way to deal with a Picklist field
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Formula and Analytics Tips & Tricks 
•How to block Account Create via Lead Convert 
•Counting Multi-Select Picklist Values* 
•Summarize Checkbox Fields 
•Create Dynamic Month to Date Reports 
* Some Animals Were Harmed in the Making of These Formulas
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Prevent new Accounts during Lead Convert
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Prevent new Accounts during Lead Convert 
Business Requirement 
•Prevent user from creating new Accounts but allow them to convert Leads to new Contacts and Opportunities 
Solution 
•Use a Validation Rule to block new Account create. 
Fields Referenced (optional) 
•$Profile.Name 
•$Role.Name 
•$User.Id 
Function Used 
•ISNEW()
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Prevent new Accounts during Lead Convert 
Formula: 
AND( 
ISNEW(), 
$Profile.Name = “Sales User”)
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Counting Multi-Picklist Values 
Business Requirement 
Need to get the count of items selected from an Multi-Picklist field on the Opportunity to get the item count per Sales Rep 
Solution 
Use a Formula to evaluate the Multi-Picklist field and return a numeric value for each item selected and sum the numeric values 
Functions and Operators Used 
IF 
INCLUDES 
+
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Counting Multi-Picklist Values 
Create a custom field 
Datatype: Formula 
Return Type: Number, 0 decimals 
Formula: 
IF( INCLUDES( What_s_for_dinner__c , "Pizza"), 1, 0) + 
IF( INCLUDES( What_s_for_dinner__c , "Lobster"), 1, 0) + 
IF( INCLUDES( What_s_for_dinner__c , "Beer"), 1, 0) + 
IF( INCLUDES( What_s_for_dinner__c , "Wine"), 1, 0) + 
IF( INCLUDES( What_s_for_dinner__c , "Cake"), 1, 0) + 
IF( INCLUDES( What_s_for_dinner__c , "Ice Cream"), 1, 0)
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Counting Multi-Picklist Values
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Counting Multi-Picklist Values
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Converting Checkbox Fields for Summary Reports 
Problem 
•Display the “summarized” Opportunity Stage / Status in List Views, Reports and Dashboards. 
•Ugly Reports and Charts Solution 
•Use a Formula to evaluate IsWon and IsClosed checkbox fields and return a text value. Functions and Fields Used 
•IF 
•IsWon 
•IsClosed
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Converting Checkbox Fields for Summary Reports 
Solution: 
Custom field 
Datatype = Formula 
Result = Text 
Formula: 
IF(IsWon, "Won", 
IF(IsClosed, "Lost", 
"Open"))
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Converting Checkbox Fields for Summary Reports
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Report on Month to Date Sales 
Problem 
•Create a dynamic report of the Month to Date for opportunity trend analysis. Solution 
•Use a Formula to evaluate Close Date (Number) and compare to current day (Number) Functions and Operators Used 
•DAY 
•TODAY() 
•<=
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Report on Month-to-Date Sales 
Custom Field 
Datatype = Formula 
Result = Checkbox 
Formula 
DAY(CloseDate) <= DAY(TODAY())
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Report on Month-to-Date Sales
Copyright © Panaya 
Twitter: @panayacg 
Email: info@panayachangeguru.com 
Formula Resources 
•Introduction to Formulas - http://wiki.developerforce.com/page/An_Introduction_to_Formulas 
•Formulas Quick Reference Guide - https://na1.salesforce.com/help/pdfs/en/salesforce_formulas_cheatsheet.pdf 
•Useful Validation Rules - http://na1.salesforce.com/help/pdfs/en/salesforce_useful_validation_formulas.pdf 
•Building a Cross Object Formula - https://help.salesforce.com/HTViewHelpDoc?id=fields_creating_cross_object_advanced.htm&language=en_US

More Related Content

Similar to Formula and Analytics Tips & Tricks

Google Optimize for testing and personalization
Google Optimize for testing and personalizationGoogle Optimize for testing and personalization
Google Optimize for testing and personalizationOWOX BI
 
Startup Metrics 4 Pirates 2.0 (March 2011, SXSW)
Startup Metrics 4 Pirates 2.0 (March 2011, SXSW)Startup Metrics 4 Pirates 2.0 (March 2011, SXSW)
Startup Metrics 4 Pirates 2.0 (March 2011, SXSW)Dave McClure
 
Map reduce: beyond word count
Map reduce: beyond word countMap reduce: beyond word count
Map reduce: beyond word countJeff Patti
 
Startup Metrics 4 Pirates (Montreal, May 2010)
Startup Metrics 4 Pirates (Montreal, May 2010)Startup Metrics 4 Pirates (Montreal, May 2010)
Startup Metrics 4 Pirates (Montreal, May 2010)Dave McClure
 
Startup Metrics for Pirates (Twiistup, Jan 2010)
Startup Metrics for Pirates (Twiistup, Jan 2010)Startup Metrics for Pirates (Twiistup, Jan 2010)
Startup Metrics for Pirates (Twiistup, Jan 2010)Dave McClure
 
Production model lifecycle management 2016 09
Production model lifecycle management 2016 09Production model lifecycle management 2016 09
Production model lifecycle management 2016 09Greg Makowski
 
IBM Insight 2015 - 1824 - Using Bluemix and dashDB for Twitter Analysis
IBM Insight 2015 - 1824 - Using Bluemix and dashDB for Twitter AnalysisIBM Insight 2015 - 1824 - Using Bluemix and dashDB for Twitter Analysis
IBM Insight 2015 - 1824 - Using Bluemix and dashDB for Twitter AnalysisTorsten Steinbach
 
10 PPC Hacks, Tips and Tricks to Optimize Your Time By Kim Thomas
10 PPC Hacks, Tips and Tricks to Optimize Your Time By Kim Thomas10 PPC Hacks, Tips and Tricks to Optimize Your Time By Kim Thomas
10 PPC Hacks, Tips and Tricks to Optimize Your Time By Kim ThomasSearch Marketing Expo - SMX
 
Startup Metrics for Pirates (March 2009)
Startup Metrics for Pirates (March 2009)Startup Metrics for Pirates (March 2009)
Startup Metrics for Pirates (March 2009)Dave McClure
 
Learning to rank search results
Learning to rank search resultsLearning to rank search results
Learning to rank search resultsJettro Coenradie
 
Know the Best Cost Reduction & Performance Management Strategies
Know the Best Cost Reduction & Performance Management StrategiesKnow the Best Cost Reduction & Performance Management Strategies
Know the Best Cost Reduction & Performance Management StrategiesNext Level Purchasing
 
PPC Masters 2016 - Query Power - Breaking Down Search Queries to Improve our ...
PPC Masters 2016 - Query Power - Breaking Down Search Queries to Improve our ...PPC Masters 2016 - Query Power - Breaking Down Search Queries to Improve our ...
PPC Masters 2016 - Query Power - Breaking Down Search Queries to Improve our ...Clean Digital
 
Inbound Growth for SaaS Scale-Ups #INBOUND18
Inbound Growth for SaaS Scale-Ups #INBOUND18Inbound Growth for SaaS Scale-Ups #INBOUND18
Inbound Growth for SaaS Scale-Ups #INBOUND18Hull
 
Well Architected: Cost Optimization
Well Architected: Cost Optimization Well Architected: Cost Optimization
Well Architected: Cost Optimization Amazon Web Services
 
Apex Algorithms: Tips and Tricks (Dreamforce 2014)
Apex Algorithms: Tips and Tricks (Dreamforce 2014)Apex Algorithms: Tips and Tricks (Dreamforce 2014)
Apex Algorithms: Tips and Tricks (Dreamforce 2014)Mary Scotton
 
Acceptance Test-Driven Development: Mastering Agile Testing
Acceptance Test-Driven Development: Mastering Agile TestingAcceptance Test-Driven Development: Mastering Agile Testing
Acceptance Test-Driven Development: Mastering Agile TestingTechWell
 
미움 받을 용기 : 저 팀은 뭘 안다고 추천한다고 들쑤시고 다니는건가
미움 받을 용기 : 저 팀은 뭘 안다고 추천한다고 들쑤시고 다니는건가미움 받을 용기 : 저 팀은 뭘 안다고 추천한다고 들쑤시고 다니는건가
미움 받을 용기 : 저 팀은 뭘 안다고 추천한다고 들쑤시고 다니는건가JaeCheolKim10
 
Rules of data mining
Rules of data miningRules of data mining
Rules of data miningSulman Ahmed
 
Startup Metrics 4 Pirates (London, March 2011)
Startup Metrics 4 Pirates (London, March 2011)Startup Metrics 4 Pirates (London, March 2011)
Startup Metrics 4 Pirates (London, March 2011)Dave McClure
 
Startup Metrics for Pirates (SF, Jan 2010)
Startup Metrics for Pirates (SF, Jan 2010)Startup Metrics for Pirates (SF, Jan 2010)
Startup Metrics for Pirates (SF, Jan 2010)Dave McClure
 

Similar to Formula and Analytics Tips & Tricks (20)

Google Optimize for testing and personalization
Google Optimize for testing and personalizationGoogle Optimize for testing and personalization
Google Optimize for testing and personalization
 
Startup Metrics 4 Pirates 2.0 (March 2011, SXSW)
Startup Metrics 4 Pirates 2.0 (March 2011, SXSW)Startup Metrics 4 Pirates 2.0 (March 2011, SXSW)
Startup Metrics 4 Pirates 2.0 (March 2011, SXSW)
 
Map reduce: beyond word count
Map reduce: beyond word countMap reduce: beyond word count
Map reduce: beyond word count
 
Startup Metrics 4 Pirates (Montreal, May 2010)
Startup Metrics 4 Pirates (Montreal, May 2010)Startup Metrics 4 Pirates (Montreal, May 2010)
Startup Metrics 4 Pirates (Montreal, May 2010)
 
Startup Metrics for Pirates (Twiistup, Jan 2010)
Startup Metrics for Pirates (Twiistup, Jan 2010)Startup Metrics for Pirates (Twiistup, Jan 2010)
Startup Metrics for Pirates (Twiistup, Jan 2010)
 
Production model lifecycle management 2016 09
Production model lifecycle management 2016 09Production model lifecycle management 2016 09
Production model lifecycle management 2016 09
 
IBM Insight 2015 - 1824 - Using Bluemix and dashDB for Twitter Analysis
IBM Insight 2015 - 1824 - Using Bluemix and dashDB for Twitter AnalysisIBM Insight 2015 - 1824 - Using Bluemix and dashDB for Twitter Analysis
IBM Insight 2015 - 1824 - Using Bluemix and dashDB for Twitter Analysis
 
10 PPC Hacks, Tips and Tricks to Optimize Your Time By Kim Thomas
10 PPC Hacks, Tips and Tricks to Optimize Your Time By Kim Thomas10 PPC Hacks, Tips and Tricks to Optimize Your Time By Kim Thomas
10 PPC Hacks, Tips and Tricks to Optimize Your Time By Kim Thomas
 
Startup Metrics for Pirates (March 2009)
Startup Metrics for Pirates (March 2009)Startup Metrics for Pirates (March 2009)
Startup Metrics for Pirates (March 2009)
 
Learning to rank search results
Learning to rank search resultsLearning to rank search results
Learning to rank search results
 
Know the Best Cost Reduction & Performance Management Strategies
Know the Best Cost Reduction & Performance Management StrategiesKnow the Best Cost Reduction & Performance Management Strategies
Know the Best Cost Reduction & Performance Management Strategies
 
PPC Masters 2016 - Query Power - Breaking Down Search Queries to Improve our ...
PPC Masters 2016 - Query Power - Breaking Down Search Queries to Improve our ...PPC Masters 2016 - Query Power - Breaking Down Search Queries to Improve our ...
PPC Masters 2016 - Query Power - Breaking Down Search Queries to Improve our ...
 
Inbound Growth for SaaS Scale-Ups #INBOUND18
Inbound Growth for SaaS Scale-Ups #INBOUND18Inbound Growth for SaaS Scale-Ups #INBOUND18
Inbound Growth for SaaS Scale-Ups #INBOUND18
 
Well Architected: Cost Optimization
Well Architected: Cost Optimization Well Architected: Cost Optimization
Well Architected: Cost Optimization
 
Apex Algorithms: Tips and Tricks (Dreamforce 2014)
Apex Algorithms: Tips and Tricks (Dreamforce 2014)Apex Algorithms: Tips and Tricks (Dreamforce 2014)
Apex Algorithms: Tips and Tricks (Dreamforce 2014)
 
Acceptance Test-Driven Development: Mastering Agile Testing
Acceptance Test-Driven Development: Mastering Agile TestingAcceptance Test-Driven Development: Mastering Agile Testing
Acceptance Test-Driven Development: Mastering Agile Testing
 
미움 받을 용기 : 저 팀은 뭘 안다고 추천한다고 들쑤시고 다니는건가
미움 받을 용기 : 저 팀은 뭘 안다고 추천한다고 들쑤시고 다니는건가미움 받을 용기 : 저 팀은 뭘 안다고 추천한다고 들쑤시고 다니는건가
미움 받을 용기 : 저 팀은 뭘 안다고 추천한다고 들쑤시고 다니는건가
 
Rules of data mining
Rules of data miningRules of data mining
Rules of data mining
 
Startup Metrics 4 Pirates (London, March 2011)
Startup Metrics 4 Pirates (London, March 2011)Startup Metrics 4 Pirates (London, March 2011)
Startup Metrics 4 Pirates (London, March 2011)
 
Startup Metrics for Pirates (SF, Jan 2010)
Startup Metrics for Pirates (SF, Jan 2010)Startup Metrics for Pirates (SF, Jan 2010)
Startup Metrics for Pirates (SF, Jan 2010)
 

More from Panaya

Comment améliorer les tests de flux transverses à vos applications métiers ?
Comment améliorer les tests de flux transverses à vos applications métiers ?Comment améliorer les tests de flux transverses à vos applications métiers ?
Comment améliorer les tests de flux transverses à vos applications métiers ?Panaya
 
Oracle on premises and oracle cloud - how to coexist webinar
Oracle on premises and oracle cloud  - how to coexist webinarOracle on premises and oracle cloud  - how to coexist webinar
Oracle on premises and oracle cloud - how to coexist webinarPanaya
 
Panaya Test Center – Auf zu postmodernem ERP Testing
Panaya Test Center – Auf zu postmodernem ERP TestingPanaya Test Center – Auf zu postmodernem ERP Testing
Panaya Test Center – Auf zu postmodernem ERP TestingPanaya
 
SAP Security Chat Tips to Improve SAP ERP Security
SAP Security Chat Tips to Improve SAP ERP SecuritySAP Security Chat Tips to Improve SAP ERP Security
SAP Security Chat Tips to Improve SAP ERP SecurityPanaya
 
Elevate to Postmodern ERP Testing
Elevate to Postmodern ERP TestingElevate to Postmodern ERP Testing
Elevate to Postmodern ERP TestingPanaya
 
Sap security webinar- dach
Sap security webinar- dachSap security webinar- dach
Sap security webinar- dachPanaya
 
Practical steps to a smooth transition to hana
Practical steps to a smooth transition to hana Practical steps to a smooth transition to hana
Practical steps to a smooth transition to hana Panaya
 
Scm webinar digital transformation
Scm webinar   digital transformationScm webinar   digital transformation
Scm webinar digital transformationPanaya
 
Getting the Most out of SAPPHIRE NOW + ASUG 2016
Getting the Most out of SAPPHIRE NOW + ASUG 2016Getting the Most out of SAPPHIRE NOW + ASUG 2016
Getting the Most out of SAPPHIRE NOW + ASUG 2016Panaya
 
Preparing for Your Oracle EBS Cloud Migration: Organizational Readiness
Preparing for Your Oracle EBS Cloud Migration: Organizational ReadinessPreparing for Your Oracle EBS Cloud Migration: Organizational Readiness
Preparing for Your Oracle EBS Cloud Migration: Organizational ReadinessPanaya
 
Behind the Magic – Your ERP Secrets Revealed
Behind the Magic – Your ERP Secrets RevealedBehind the Magic – Your ERP Secrets Revealed
Behind the Magic – Your ERP Secrets RevealedPanaya
 
Are you putting your organization at risk?
Are you putting your organization at risk?Are you putting your organization at risk?
Are you putting your organization at risk?Panaya
 
S/4HANA Simple Finance - The C-Level Pleaser - UK Edition
S/4HANA Simple Finance - The C-Level Pleaser - UK EditionS/4HANA Simple Finance - The C-Level Pleaser - UK Edition
S/4HANA Simple Finance - The C-Level Pleaser - UK EditionPanaya
 
The Killer Practice for All SAP Changes
The Killer Practice for All SAP ChangesThe Killer Practice for All SAP Changes
The Killer Practice for All SAP ChangesPanaya
 
Understanding the value of agility in the cloud
Understanding the value of agility in the cloud  Understanding the value of agility in the cloud
Understanding the value of agility in the cloud Panaya
 
SAP Nation 2.0 – A Realistic Market Perspective of S4/HANA Simplicity
SAP Nation 2.0 – A Realistic Market Perspective of S4/HANA SimplicitySAP Nation 2.0 – A Realistic Market Perspective of S4/HANA Simplicity
SAP Nation 2.0 – A Realistic Market Perspective of S4/HANA SimplicityPanaya
 
SAP GVP Sven Denecken Kicks Off Premier Panaya-SAP S/4HANA Webinar
SAP GVP Sven Denecken Kicks Off Premier Panaya-SAP S/4HANA WebinarSAP GVP Sven Denecken Kicks Off Premier Panaya-SAP S/4HANA Webinar
SAP GVP Sven Denecken Kicks Off Premier Panaya-SAP S/4HANA WebinarPanaya
 
S4 HANA Webinar
S4 HANA WebinarS4 HANA Webinar
S4 HANA WebinarPanaya
 
Campaign overview (1)
Campaign overview (1)Campaign overview (1)
Campaign overview (1)Panaya
 
Master S4/HANA Webinar Series – An in-depth look at the ERP pains S4/HANA add...
Master S4/HANA Webinar Series – An in-depth look at the ERP pains S4/HANA add...Master S4/HANA Webinar Series – An in-depth look at the ERP pains S4/HANA add...
Master S4/HANA Webinar Series – An in-depth look at the ERP pains S4/HANA add...Panaya
 

More from Panaya (20)

Comment améliorer les tests de flux transverses à vos applications métiers ?
Comment améliorer les tests de flux transverses à vos applications métiers ?Comment améliorer les tests de flux transverses à vos applications métiers ?
Comment améliorer les tests de flux transverses à vos applications métiers ?
 
Oracle on premises and oracle cloud - how to coexist webinar
Oracle on premises and oracle cloud  - how to coexist webinarOracle on premises and oracle cloud  - how to coexist webinar
Oracle on premises and oracle cloud - how to coexist webinar
 
Panaya Test Center – Auf zu postmodernem ERP Testing
Panaya Test Center – Auf zu postmodernem ERP TestingPanaya Test Center – Auf zu postmodernem ERP Testing
Panaya Test Center – Auf zu postmodernem ERP Testing
 
SAP Security Chat Tips to Improve SAP ERP Security
SAP Security Chat Tips to Improve SAP ERP SecuritySAP Security Chat Tips to Improve SAP ERP Security
SAP Security Chat Tips to Improve SAP ERP Security
 
Elevate to Postmodern ERP Testing
Elevate to Postmodern ERP TestingElevate to Postmodern ERP Testing
Elevate to Postmodern ERP Testing
 
Sap security webinar- dach
Sap security webinar- dachSap security webinar- dach
Sap security webinar- dach
 
Practical steps to a smooth transition to hana
Practical steps to a smooth transition to hana Practical steps to a smooth transition to hana
Practical steps to a smooth transition to hana
 
Scm webinar digital transformation
Scm webinar   digital transformationScm webinar   digital transformation
Scm webinar digital transformation
 
Getting the Most out of SAPPHIRE NOW + ASUG 2016
Getting the Most out of SAPPHIRE NOW + ASUG 2016Getting the Most out of SAPPHIRE NOW + ASUG 2016
Getting the Most out of SAPPHIRE NOW + ASUG 2016
 
Preparing for Your Oracle EBS Cloud Migration: Organizational Readiness
Preparing for Your Oracle EBS Cloud Migration: Organizational ReadinessPreparing for Your Oracle EBS Cloud Migration: Organizational Readiness
Preparing for Your Oracle EBS Cloud Migration: Organizational Readiness
 
Behind the Magic – Your ERP Secrets Revealed
Behind the Magic – Your ERP Secrets RevealedBehind the Magic – Your ERP Secrets Revealed
Behind the Magic – Your ERP Secrets Revealed
 
Are you putting your organization at risk?
Are you putting your organization at risk?Are you putting your organization at risk?
Are you putting your organization at risk?
 
S/4HANA Simple Finance - The C-Level Pleaser - UK Edition
S/4HANA Simple Finance - The C-Level Pleaser - UK EditionS/4HANA Simple Finance - The C-Level Pleaser - UK Edition
S/4HANA Simple Finance - The C-Level Pleaser - UK Edition
 
The Killer Practice for All SAP Changes
The Killer Practice for All SAP ChangesThe Killer Practice for All SAP Changes
The Killer Practice for All SAP Changes
 
Understanding the value of agility in the cloud
Understanding the value of agility in the cloud  Understanding the value of agility in the cloud
Understanding the value of agility in the cloud
 
SAP Nation 2.0 – A Realistic Market Perspective of S4/HANA Simplicity
SAP Nation 2.0 – A Realistic Market Perspective of S4/HANA SimplicitySAP Nation 2.0 – A Realistic Market Perspective of S4/HANA Simplicity
SAP Nation 2.0 – A Realistic Market Perspective of S4/HANA Simplicity
 
SAP GVP Sven Denecken Kicks Off Premier Panaya-SAP S/4HANA Webinar
SAP GVP Sven Denecken Kicks Off Premier Panaya-SAP S/4HANA WebinarSAP GVP Sven Denecken Kicks Off Premier Panaya-SAP S/4HANA Webinar
SAP GVP Sven Denecken Kicks Off Premier Panaya-SAP S/4HANA Webinar
 
S4 HANA Webinar
S4 HANA WebinarS4 HANA Webinar
S4 HANA Webinar
 
Campaign overview (1)
Campaign overview (1)Campaign overview (1)
Campaign overview (1)
 
Master S4/HANA Webinar Series – An in-depth look at the ERP pains S4/HANA add...
Master S4/HANA Webinar Series – An in-depth look at the ERP pains S4/HANA add...Master S4/HANA Webinar Series – An in-depth look at the ERP pains S4/HANA add...
Master S4/HANA Webinar Series – An in-depth look at the ERP pains S4/HANA add...
 

Recently uploaded

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 

Recently uploaded (20)

How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 

Formula and Analytics Tips & Tricks

  • 1. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Thanks for joining today’s webinar Formula and Analytics Tips & Tricks With Steve Molis (SteveMo)
  • 2. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Safe Habah Statement
  • 3. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com •Using the ISPICKVAL and CASE Functions •Creating an Opportunity Rollback Validation Rule •Using the TEXT Function to convert Picklist Values * No Animals Were Harmed in the Making of These Formulas > 1 way to deal with a Picklist field
  • 4. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Formula and Analytics Tips & Tricks •How to block Account Create via Lead Convert •Counting Multi-Select Picklist Values* •Summarize Checkbox Fields •Create Dynamic Month to Date Reports * Some Animals Were Harmed in the Making of These Formulas
  • 5. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Function: ISPICKVAL (aka “old faithful”) Description: Determines if the value of a picklist field is equal to a text literal you specify. Example: IF(ISPICKVAL(Weather, "Zombies!"), "RUN!!!", IF(ISPICKVAL(Weather, "HOT"), "Go Swimming", IF(ISPICKVAL(Weather, "WARM"), “Have a picnic", IF(ISPICKVAL(Weather, "COLD"), "Sit by the fire", "Send out for Pizza")))) Function: CASE Description: Checks a given expression against a series of values. Example: CASE(Weather, "Zombies!", "RUN!!!", "HOT", "Go Swimming", "WARM", “Have a picnic", "COLD", "Sit by the fire", "Send out for Pizza") > 1 way to deal with a Picklist field
  • 6. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Business Requirement Prevent user from changing the Opportunity Stage to a previous Opportunity Stage Solution Use a Validation Rule to evaluate current Opportunity Stage and compare it to the previous Opportunity Stage Fields Referenced Opportunity: StageName Functions and Operators Used CASE PRIORVALUE < > 1 way to deal with a Picklist field
  • 7. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com CASE( StageName , "Prospecting", 1, "Qualification", 2, "Needs Analysis", 3, "Value Proposition", 4, "Proposal/Price Quote", 5, "Negotiation/Review", 6, "Closed - Won", 7, "Closed - Lost", 7, 0) < CASE(PRIORVALUE(StageName), "Prospecting", 1, "Qualification", 2, "Needs Analysis", 3, "Value Proposition", 4, "Proposal/Price Quote", 5, "Negotiation/Review", 6, "Closed - Won", 7, "Closed - Lost", 7, 0) > 1 way to deal with a Picklist field
  • 8. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Function: TEXT Description: Converts picklist values to text in Validation Rules, Formula Fields, and Workflow Field Updates. So that you can do stuff like this… > 1 way to deal with a Picklist field
  • 9. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com •TEXT •Operators: > < = >= <= <> •ISBLANK •VALUE •BEGINS •CONTAINS •LEFT/RIGHT •FIND/SUBSTITUTE > 1 way to deal with a Picklist field
  • 10. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Problem: Make a custom picklist field called “Loss Reason” required if the Opportunity Stage is Closed/Lost. > 1 way to deal with a Picklist field
  • 11. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Solution: Create a Validation Rule Formula: AND( TEXT(StageName) = "Closed Lost", ISBLANK(TEXT(Loss_Reason__c))) > 1 way to deal with a Picklist field
  • 12. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Problem: Calculate the Opportunity Discount Amount from Discount% (a custom picklist field) > 1 way to deal with a Picklist field
  • 13. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Solution: Create a custom field Datatype: Formula Result: Currency Formula: Amount * (VALUE(TEXT( Discount_Pct__c )) / 100) > 1 way to deal with a Picklist field
  • 14. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Tip #2: Create a custom Enhanced List View or Report to double-check your Formulas > 1 way to deal with a Picklist field
  • 15. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Problem: Require priority 1-3 for any “Existing Customer” opportunities. > 1 way to deal with a Picklist field
  • 16. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Solution: Create a Validation Rule Formula: AND( BEGINS(TEXT(Type),"Existing"), VALUE(TEXT( Priority__c )) > 3)) > 1 way to deal with a Picklist field
  • 17. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Problem: Do not allow “Renewal” Cases for Inactive Accounts > 1 way to deal with a Picklist field
  • 18. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Solution: Create a Validation Rule Formula: AND( Account.Active__c = FALSE, CONTAINS( TEXT(Status) , "Renewal")) > 1 way to deal with a Picklist field
  • 19. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Problem: Extract the Numeric Value from the end of Picklist Values that contain mixed length text characters. Use Case: Approval Processes, Workflow Rules, Validation Rules, Formula Fields. > 1 way to deal with a Picklist field
  • 20. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com CASE Formula: CASE( SLA__c , "Diamond 5.0", 5.0, "Platinum 4.0", 4.0, "Gold 2.5", 2.5, "Silver 1.5", 1.5, "Bronze 0.5", 0.5, 0) Compiled size: 5 Values = 326 bytes 10 Values = 426 bytes Nested IF Formula: IF(ISPICKVAL(SLA__c ,"Diamond 5.0"), 5.0, IF(ISPICKVAL(SLA__c ,"Platinum 4.0"), 4.0, IF(ISPICKVAL(SLA__c ,"Gold 2.5"), 2.5, IF(ISPICKVAL(SLA__c ,"Silver 1.5"), 1.5, IF(ISPICKVAL(SLA__c ,"Bronze 0.5"), 0.5, 0))))) Compiled size: 5 Values = 465 bytes 10 Values = 950 bytes > 1 way to deal with a Picklist field
  • 21. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Solution: Formula: VALUE( RIGHT ( TEXT ( SLA__c ), 3 )) Compiled size: 280 bytes •Use the TEXT function to convert the Picklist Value to a Text String. •Then use the RIGHT function to extract the last 3 characters or the Text String. •Then use the VALUE function to convert the last 3 characters to a Numeric Value. > 1 way to deal with a Picklist field
  • 22. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Field Name: Bottles of Beer on the Wall Dataype: Picklist 100 Values: 100 - Bottles of Beer 99 - Bottles of Beer 98 - Bottles of Beer 97 - Bottles of Beer 96 - Bottles of Beer 95 - Bottles of Beer 94 - Bottles of Beer … > 1 way to deal with a Picklist field
  • 23. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Dataype: Formula Result: Number Formula: VALUE(TRIM(LEFT(TEXT(Bottles_of_Beer_on_the_Wall__c), FIND(" - ", TEXT(Bottles_of_Beer_on_the_Wall__c))))) Compiled size: ISPICKVAL = 7,602 characters CASE = 6,478 bytes TEXT = 546 bytes > 1 way to deal with a Picklist field
  • 24. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com > 1 way to deal with a Picklist field
  • 25. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Formula and Analytics Tips & Tricks •How to block Account Create via Lead Convert •Counting Multi-Select Picklist Values* •Summarize Checkbox Fields •Create Dynamic Month to Date Reports * Some Animals Were Harmed in the Making of These Formulas
  • 26. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Prevent new Accounts during Lead Convert
  • 27. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Prevent new Accounts during Lead Convert Business Requirement •Prevent user from creating new Accounts but allow them to convert Leads to new Contacts and Opportunities Solution •Use a Validation Rule to block new Account create. Fields Referenced (optional) •$Profile.Name •$Role.Name •$User.Id Function Used •ISNEW()
  • 28. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Prevent new Accounts during Lead Convert Formula: AND( ISNEW(), $Profile.Name = “Sales User”)
  • 29. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Counting Multi-Picklist Values Business Requirement Need to get the count of items selected from an Multi-Picklist field on the Opportunity to get the item count per Sales Rep Solution Use a Formula to evaluate the Multi-Picklist field and return a numeric value for each item selected and sum the numeric values Functions and Operators Used IF INCLUDES +
  • 30. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Counting Multi-Picklist Values Create a custom field Datatype: Formula Return Type: Number, 0 decimals Formula: IF( INCLUDES( What_s_for_dinner__c , "Pizza"), 1, 0) + IF( INCLUDES( What_s_for_dinner__c , "Lobster"), 1, 0) + IF( INCLUDES( What_s_for_dinner__c , "Beer"), 1, 0) + IF( INCLUDES( What_s_for_dinner__c , "Wine"), 1, 0) + IF( INCLUDES( What_s_for_dinner__c , "Cake"), 1, 0) + IF( INCLUDES( What_s_for_dinner__c , "Ice Cream"), 1, 0)
  • 31. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Counting Multi-Picklist Values
  • 32. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Counting Multi-Picklist Values
  • 33. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Converting Checkbox Fields for Summary Reports Problem •Display the “summarized” Opportunity Stage / Status in List Views, Reports and Dashboards. •Ugly Reports and Charts Solution •Use a Formula to evaluate IsWon and IsClosed checkbox fields and return a text value. Functions and Fields Used •IF •IsWon •IsClosed
  • 34. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Converting Checkbox Fields for Summary Reports Solution: Custom field Datatype = Formula Result = Text Formula: IF(IsWon, "Won", IF(IsClosed, "Lost", "Open"))
  • 35. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Converting Checkbox Fields for Summary Reports
  • 36. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Report on Month to Date Sales Problem •Create a dynamic report of the Month to Date for opportunity trend analysis. Solution •Use a Formula to evaluate Close Date (Number) and compare to current day (Number) Functions and Operators Used •DAY •TODAY() •<=
  • 37. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Report on Month-to-Date Sales Custom Field Datatype = Formula Result = Checkbox Formula DAY(CloseDate) <= DAY(TODAY())
  • 38. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Report on Month-to-Date Sales
  • 39. Copyright © Panaya Twitter: @panayacg Email: info@panayachangeguru.com Formula Resources •Introduction to Formulas - http://wiki.developerforce.com/page/An_Introduction_to_Formulas •Formulas Quick Reference Guide - https://na1.salesforce.com/help/pdfs/en/salesforce_formulas_cheatsheet.pdf •Useful Validation Rules - http://na1.salesforce.com/help/pdfs/en/salesforce_useful_validation_formulas.pdf •Building a Cross Object Formula - https://help.salesforce.com/HTViewHelpDoc?id=fields_creating_cross_object_advanced.htm&language=en_US