Hello everyone,
Unfortunately I have a field that says something like: “A|B” or also “A|B|C” or "B|C". I don't know in advance how many different combinations there are, but I have predefined categories. Now I want to create a diagram in which I want to display the frequency of the individual elements. If I do something like:
Case
when Table1.Column Like '%A%' then 'A'
when Table1.Column Like '%B%' then 'B' etc.
end
Then it aborts after the first occurrence and does not count the other elements. But I would like to have them all counted in each associated “pot”.
Several case when statements in a row do not work, even union does not work in PQL as far as I know. With STRING_SPLIT I can cut after the “|”, but I don't know how I can then aggregate the individual occurrences again.
I would also be interested to know how I can count the number of occurrences of “|” in a string
Does anyone have an idea? Thank you!