C
cxc
Hi all,
Here is my issue: let's assume that I have a dataset with 2 fields:
"ID" and "score".
ID Score
1 2
2 11
3 33
4 37
5 42
What I am trying to do is to "group" similar scores together and know
how many instances belong to each group.
The output that I want is below:
Score #ID
0-10 1
11-20 1
21-30 0
31-40 2
41-50 1
Now the issue that I have is that when I use the partition function in
access, it basically "discard" the empty groups (in this case the
"21-30" group) and does not display it at all. My output being:
Score #ID
0-10 1
11-20 1
31-40 2
41-50 1
Of course the obvious solution is to then use iif statements to
generate these groups, but if I need to generate let say 1000 groups
(e.g. from 0 to 1 million by groups of 1000) the iif statement would
take forever to write and it would be too complex anyway... So I do
need an automated way to do this.
Also, the dataset is too big (~1 million record) to fit into Excel, so
I can really use Excel.
Anyone has a suggestion on how to work around this?
Thanks in advance!
Here is my issue: let's assume that I have a dataset with 2 fields:
"ID" and "score".
ID Score
1 2
2 11
3 33
4 37
5 42
What I am trying to do is to "group" similar scores together and know
how many instances belong to each group.
The output that I want is below:
Score #ID
0-10 1
11-20 1
21-30 0
31-40 2
41-50 1
Now the issue that I have is that when I use the partition function in
access, it basically "discard" the empty groups (in this case the
"21-30" group) and does not display it at all. My output being:
Score #ID
0-10 1
11-20 1
31-40 2
41-50 1
Of course the obvious solution is to then use iif statements to
generate these groups, but if I need to generate let say 1000 groups
(e.g. from 0 to 1 million by groups of 1000) the iif statement would
take forever to write and it would be too complex anyway... So I do
need an automated way to do this.
Also, the dataset is too big (~1 million record) to fit into Excel, so
I can really use Excel.
Anyone has a suggestion on how to work around this?
Thanks in advance!