How to count number of values in a dimension for a segment | Community
Skip to main content
dleverentzPT
February 22, 2023
Solved

How to count number of values in a dimension for a segment

  • February 22, 2023
  • 1 reply
  • 1917 views

I'm trying to show the number of unique values/rows in a dimension. Specifically, we collect the UserID of each visitor. I want to show the number of unique UserIDs within a segment. 

 

I tried using the Summary Number visualization, but that sums the values of the occurrences. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jennifer_Dungan

Create a calculate metric using "Approximate Distinct Count" function.

 

 

 

 

 

If you want to remove the "unspecified" values. you can also add an on-the-fly segment for "UserId exists" (simply drag your UserId dimension into the calculated metric above the "Approximate Count Distinct" function

 

 

 

 

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
February 22, 2023

Create a calculate metric using "Approximate Distinct Count" function.

 

 

 

 

 

If you want to remove the "unspecified" values. you can also add an on-the-fly segment for "UserId exists" (simply drag your UserId dimension into the calculated metric above the "Approximate Count Distinct" function

 

 

 

 

Alexis_Cazes_
Level 10
February 22, 2023

For more details on count distinct read this article https://www.fullstackanalyst.io/blog/adobe-analytics/cool-approximate-count-distinct-use-cases-adobe-analytics-tips/ it will complement the answer above