on 11-10-2015 5:01 PM
Hi,
I need to calculate YTD count distinct by time. My data is
date id
1/1/2015 1
1/1/2015 2
…
1/2/2015 1
1/2/2015 3
and the report is:
date | # of id | # of id YTD |
---|---|---|
=[date] | =count([id];distinct) | ??? |
I've tried several versions of =Count([id] Where ([id] dynamic condition);Distinct) ForAll([id]), but with no luck (Dynamic condition is going to extend the scope incrementally)
I'd much appreciate any advise on this.
Thanks,
Michal
Hi Michal,
Try
=RunningSum( Count ([id]) ) for "# of id YTD"
and check.
Regards,
Yuvraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I'm sorry but didn't understand your questionar.
Can you clarify it a little bit more?
Perhaps with a sample?
Regards,
Rogerio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
=RunningCount([ID]) in ([ID]) will give you a result that is half way there when you include ID in your table - you'll see that the last value for each Year-Month is the number that you want. I'm struggling to figure out how to translate that into something without the ID in the table. Not sure if it's anywhere near a solution for you but it could be a start.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.