Adding custom rows on summarization
mohamed
Forums
Hi,
I am summarizing a file based on a column 'Category'.
Categories will be A, B, C, D, etc
So summary file will have records like given below.
Category No of records
A 10
B 20
C 15
My requirement is this:
If there are no records corresponding to Category ='B', it should show record count as zero for category B, as given below.
Category No of records
A 10
B 0
C 15
Could you please suggest any workarounds to achieve this requirement?
Thanks in advance,
Shafeer
Sorry, I hadn't realized it
In reply to Hi Brian, by mohamed
Sorry, I hadn't realized it was for a SmartAnalzyer app, now I understand.
So there is only 8 items. Then I would suggest that your script had a section that creates a new database and adds the categories. Below is some sample code to do that. You can copy it and modify it. Then you can do the join to have a file with a 0 for records if there is no items.
Let me know how it goes.
Brian