Skip to main content

I try to calculate plan numbers based on the number of sales resources in analytics. However, filtering this down in the analytics dashboard, I have the issue that not every subgroup has salespeople in every sales job group. Means, analytics is not showing results for the plan number if a group has zero salespeople in a specific job group. Unfortunately, I could not figure out how to use an if formula or to replace an error with zero. Any idea? Below is the query. The yellow-marked formula would need to have a condition check (e.g. "E" is a count of all Inside Sales Resources. If in a given group there are no Inside Sales Executives, the result should be zero).

Hi,

 

@* CRM Analytics (fka Tableau CRM) *

2 Antworten
  1. Prabhat Mishra (Salesforce) Forum Ambassador
    9. Nov. 2023, 15:09

    Hi @Volker Roessler,

    You can try using coalesce() to replace nulls with 0.

    coalesce(E*10000,0) as 'J', coalesce(F*20000,0) as 'K', coalesce(G*120000,0) as 'M', coalesce(I*120000,0) as 'N'
0/9000