I am using the partition function to generate data that I then use for a histogram chart. I am summing the quantity of parts and grouping by part size. Pretty much everything works, except for missing ranges in the partition output.
If I have no data records within a partition range, then that range is not included in the results. I want the range listed, but with a zero in the quantity column.
For example: if I use partition([size], 71, 100, 10) and there is no record with a size between 80 and 90-
Anyone with a good idea?
If I have no data records within a partition range, then that range is not included in the results. I want the range listed, but with a zero in the quantity column.
For example: if I use partition([size], 71, 100, 10) and there is no record with a size between 80 and 90-
I get:
71:80 | 15
91:100 | 23
I want:
71:80 | 15
81:90 | 0
91:100 | 23
I've tried to work around this by adding records to fill the gaps with a zero quantity, but this "solution" is fragile and does not adapt well to other changes.71:80 | 15
91:100 | 23
I want:
71:80 | 15
81:90 | 0
91:100 | 23
Anyone with a good idea?