ojaskulkarni
New Member
Hi, I have a growing database of Sales leads and I have to calculate their eligibility for incentives. Now the incentive plan is in "tiers". Meaning Lead 1 to 5 (chronologically by attended Date) is defined as Tier 1. Lead 6 to 10 is Tier 2. Each "Tier" has a different amount to be calculated. This has to be done across 100+ rows every time, hence wanted to automate. I already used "defined tables" and use table functions like #ThisRow etc. within CountIF to validate other criterion. The eligibility is dependent on 3-4 variables and basis this the record is marked as "Eligible" or "Not Eligible" within every calendar quarter. The last step is to mark Tier for each record and then amount can be calculated. Please help.
An example of formula I use to validate count of records eligible in each quarter:
(this may be irrelevant, but will give an idea of controls in use already)
=IF(LeadsTrxn[[#This Row],[Plan type]]="A",IF(AND(COUNTIFS(LeadsTrxn[[#Data],[Campaign Owner]],LeadsTrxn[[#This Row],[Campaign Owner]],LeadsTrxn[[#Data],[Status]],"Attended",LeadsTrxn[[#Data],[Eligible Qtr]],LeadsTrxn[[#This Row],[Eligible Qtr]])>8, LeadsTrxn[[#This Row],[Status]]="Attended", LeadsTrxn[[#This Row],[PaidLeads]]="Not Paid"),"Eligible","Not Eligible"),IF(AND(COUNTIFS(LeadsTrxn[[#Data],[Campaign Owner]],LeadsTrxn[[#This Row],[Campaign Owner]],LeadsTrxn[[#Data],[Status]],"Attended",LeadsTrxn[[#Data],[Eligible Qtr]],LeadsTrxn[[#This Row],[Eligible Qtr]])>11, LeadsTrxn[[#This Row],[Status]]="Attended", LeadsTrxn[[#This Row],[PaidLeads]]="Not Paid"),"Eligible","Not Eligible"))
An example of formula I use to validate count of records eligible in each quarter:
(this may be irrelevant, but will give an idea of controls in use already)
=IF(LeadsTrxn[[#This Row],[Plan type]]="A",IF(AND(COUNTIFS(LeadsTrxn[[#Data],[Campaign Owner]],LeadsTrxn[[#This Row],[Campaign Owner]],LeadsTrxn[[#Data],[Status]],"Attended",LeadsTrxn[[#Data],[Eligible Qtr]],LeadsTrxn[[#This Row],[Eligible Qtr]])>8, LeadsTrxn[[#This Row],[Status]]="Attended", LeadsTrxn[[#This Row],[PaidLeads]]="Not Paid"),"Eligible","Not Eligible"),IF(AND(COUNTIFS(LeadsTrxn[[#Data],[Campaign Owner]],LeadsTrxn[[#This Row],[Campaign Owner]],LeadsTrxn[[#Data],[Status]],"Attended",LeadsTrxn[[#Data],[Eligible Qtr]],LeadsTrxn[[#This Row],[Eligible Qtr]])>11, LeadsTrxn[[#This Row],[Status]]="Attended", LeadsTrxn[[#This Row],[PaidLeads]]="Not Paid"),"Eligible","Not Eligible"))