I have around 25 flags, each flag is coded A-Y.
I also have loads of flaglist. They will be a combination of the flags, based on what the customer selects.
To create the flaglist, we add all flags triggered when a user adds it to their list. They can only be selected once. So the list will never have multiple A’s, B’s etc. Only one flag per item.
Example:
I can see that flagA has been triggered 120 times. This is because i have it set to a KPI (count). However we can also see this is true as appeared in flaglist:
flaglist ‘ABCDE’ occurred 43 times
flaglist ‘AKLNO’ occurred 40 times
flaglist ‘AGI’ occurred 27 times
flaglist ‘AJ’ occurred 6 times
flaglist ‘A’ occurred 4 times
This adds up to 120
So i now have two tables, only where it shows the unique list with a count, and another where it shows the individual flag with a count.
The flaglist counts should always add up to the amount of times the flag has been triggered… However, i have a problem when creating one field which looks at all the hundreds of flaglists, and finding the count of each flag in one field. I have the calculated field as this (think of DeclineList as flaglist):
But when i have a look at the counts, they are incorrect:
Top image is the field i created to group the flags into one field - showing count of ‘X4’. The bottom is the actual count of ‘X4’
I think the reason it doesn’t work as it looks in DeclineList, and will look for ‘A’, if found it will +1 to ‘A’, and then look at the next list. So it skips any letters after the first one is found. I need it to be to work like this. If it contains ‘A’, add 1 to ‘A’, and check if it contains ‘B’, if so add 1 to ‘B’, then check for ‘C’, if so add 1 to ‘C’. Instead of - If it contains ‘A’, add 1 to ‘A’, check next list.
If confusing please respond and ill try make it make sense, but basically i want to group all my flags into one field so i can see the count of each flag in one field, instead of adding 25 flags to a bar chart.