Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have created the following set analysis to try and count the number of qualified leads based on three fields:
- Lead Score
- Pardot Score
- Lead Stage
count({< [Lead Stage] = {'MQL'}>}distinct([Lead ID])) + count({< [Lead Score] = {">=100"}>}distinct([Lead ID])) + count({< [Pardot Score] = {">=100"}>}distinct([Lead ID]))
Not all of the fields are in sync, so I want to count all of the qualified leads WITHOUT double counting (i.e a lead has a score > 100 and a lead stage = MQL). In SQL it would be something like, WHERE [Lead Stage] = 'MQL' OR [Lead Score] >= 100 OR [Pardot Score] >= 100 ... But the union in set analysis is definitely double counting records.
Any help is appreciated.
Thank you,
- dave
Or just this:
Count({<[Lead ID] = {"=[Lead Stage] = 'MQL' or [Lead Score] >=100 or [Pardot Score] >=100"}>} DISTINCT [Lead ID])
try
count({< [Lead Stage] = {'MQL'}>+ <[Lead Score] = {">=100"}> + < [Pardot Score] = {">=100"}>}distinct([Lead ID]))
Hi,
You can use below expression.
count({< [Lead Stage] = {'MQL'}>} + [Lead Score] = {">=100 + [Pardot Score] = {">=100"}>}distinct [Lead ID])
Or just this:
Count({<[Lead ID] = {"=[Lead Stage] = 'MQL' or [Lead Score] >=100 or [Pardot Score] >=100"}>} DISTINCT [Lead ID])
You did it again Sunny. Many thanks as always