Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

count distinct after accumulate

Dear All,

suppose :

count( distinct {<month = {'Jan'}>}  guest )   = 10

count( distinct {<month = {'Feb'}>}  guest )   = 20

count( distinct {<month = {'Mar'}>}  guest )   = 15

those set of guest in different months may overlaps, thus

count( distinct {<month = {'Jan','Feb'}>}  guest )   = 25

count( distinct {<month = {'Jan','Feb','Mar'}>}  guest )   = 35

What i want to do is to first accumulate the guest set, then followed by a distinct count ,

if i choose Mar in selection

the report will show me 3 rows Jan, Feb, Mar...

That's it

Many Thanks!!!!

Calvin Lin

1 Reply
vikasmahajan

Have try this  ?

Expression : [Count of Customers]

=RangeSum( count( distinct {<month = {'Jan','Feb','Mar'}>}  guest ),Above( [Count of Customers]))



Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.