Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
NSC | Saved Search that shows Count and Percentage of Lead and Non-Lead records
Scenario
User needs to know the count and the percentage of Leads and Non-Lead records in their account.
Solution
This can be achieved by creating a Customer Saved Search with the following details:
- Criteria tab:
Note: You can add/remove filters as necessary.
- Results tab:
Note: You can add/remove columns as necessary.
Formula used:
- Count of Leads: COUNT(CASE WHEN {stage} = 'Lead' THEN {entityid} END)
- Lead %: COUNT(CASE WHEN {stage} = 'Lead' THEN {entityid} END)/NULLIF(COUNT({entityid}),0)
- Count of Non-Leads: COUNT(CASE WHEN {stage} != 'Lead' THEN {entityid} END)
- Non-Leads %: COUNT(CASE WHEN {stage} != 'Lead' THEN {entityid} END)/NULLIF(COUNT({entityid}),0)
Learn how to Refer A Member | Earn the Answer Accepter Badge | Be the Content Creator of the Quarter | Vote for the content you want to see!
Tagged:
0
