Description Show different icons depending on a comparison of the contact’s household’s last two years of giving.
In Bundle Images Fields Fields Value sObject ContactField Compare_LY_TY__cActive trueDescription Compares npo02__OppAmountThisYearHH__c, npo02__OppAmountLastYearHH__cEmpty Static Text Behavior Use Icon OnlyShow False or Blank false
Extensions Fields Value Priority 1Indicator Item Contact_HH_Compare_LY_TYActive trueContainst Text Zero-ZeroHover Text Both Last and This Year ZeroStatic Text 💤
Fields Value Priority 2Indicator Item Contact_HH_Compare_LY_TYActive trueContainst Text LYBUNTHover Text Last Year but not This YearStatic Text 🔻
Fields Value Priority 3Indicator Item Contact_HH_Compare_LY_TYActive trueContainst Text TYNLYHover Text This Year but not Last YearStatic Text 🐣
Fields Value Priority 4Indicator Item Contact_HH_Compare_LY_TYActive trueContainst Text IncreaseHover Text Increased from Last YearStatic Text 💹
Fields Value Priority 5Indicator Item Contact_HH_Compare_LY_TYActive trueContainst Text DecreaseHover Text Decreased from Last YearStatic Text 📉
Fields Value Priority 6Indicator Item Contact_HH_Compare_LY_TYActive trueContainst Text SameHover Text Same Last and This YearStatic Text ↔
Preparation Field Value Field Label Compare LY TY Object Name Contact Field Name Compare_LY_TY API Name Compare_LY_TY__c Description Results in one of six values, based on comparing Contact’s Household- Total Amount Last Year vs. Total Amount This Year. Resulting values can be (Zero-Zero, LYBUNT, TYNLY, Increase, Decrease, Same)
IF( npo02__OppAmountThisYearHH__c = 0, IF( npo02__OppAmountLastYearHH__c = 0, "Zero-Zero", "LYBUNT"), IF( npo02__OppAmountLastYearHH__c = 0, "TYNLY", IF ( npo02__OppAmountThisYearHH__c > npo02__OppAmountLastYearHH__c, "Increase", IF ( npo02__OppAmountThisYearHH__c < npo02__OppAmountLastYearHH__c, "Decrease", "Same" ) ) ))
Contributed By Eileen K, programmer2coder