0

As Company is a text field in Leads, I cannot figure out how to count the number of distinct companies we have for all our Leads. Is there a work-around? Thanks.

  • What have you researched/tried so far? – Derek F Sep 12 '19 at 19:17
2

You can use COUNT_DISTINCT aggregate SOQL query.

SELECT COUNT_DISTINCT(Company)
FROM Lead
  • OK will do. Thank You! – JB Cooney Sep 12 '19 at 22:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.