BalaR
08-28-2025Data Storage
Count (Boolean)
I have segmented the sample and i have 5 distinct segments. We have recoded the segments with a (boolean) Yes or No. So the data is setup as Segment A = Yes/ no. I want to use the 123 indicator to display the count of the segment and the secondary value as % of total sample. I have tried the 3 formulas below and none of them are giving me the count
1. COUNT(
FILTER(SEGMENT_A], [SEGMENT_A] = "Yes")
)
2. COUNTDISTINCT(
FILTER([participant_id], [segment_A] = "Yes")
)
3. COUNT( FILTER([Segment_A], [Segment_A] = "Yes") )
/
NULLIF(
COUNT( FILTER([Segment_A], [Segment_A] IN ("Yes","No")) ),
0
)
Can you please advise what is the right way to calculate the count for Segment A?