Hello,
I have a table and i want to summarize the data, but cannot do it.
My table is :
OPEN CLOSE PRIORITY COUNT
NO YES 1 19
NO YES 2 72
NO YES 3 115
YES NO 1 17
YES NO 2 20
YES NO 3 96
YES YES 1 53
YES YES 2 111
YES YES 3 165
As a result, I want a table with 3 columns (ACTION, PRIORITY, COUNT) summarized like follow :
- ACTION
= OPEN (if OPEN = YES)
= OPEN/CLOSE (if OPEN = YES and CLOSE = YES)
= CLOSE (if CLOSE = YES) - PRIORITY
- COUNT = sum of values for each action/priority
The final table should be :
ACTION PRIORITY COUNT
OPEN 1 70
OPEN 2 131
OPEN 3 261
OPEN/CLOSE 1 53
OPEN/CLOSE 2 111
OPEN/CLOSE 3 165
CLOSE 1 72
CLOSE 2 183
CLOSE 3 280
I hope my explanation is clear enough
Thank you in advance to all
Atxeco[/code]
atxeco (BOB member since 2009-05-13)