Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count For Pick and WildMatch

Unable to recount the word after it have been count in bar chart.

Labels
ITSDM; UAT
ITSDM
ITSDM
ITSDM; UAT
ITSDM; UAT

=Pick(WildMatch(Labels, '*ITSDM*', '*UAT*'), 'ITSDM', 'UAT')

The bar chart should be

ITSDM 5

UAT 3

But the error now is

ITSDM 5

UAT 0

6 Replies
swuehl
MVP
MVP

You can't group your records into two groups of different dimensional values at the same time.

Use Subfield() in your load script to separate your concatenated values into separate records

LOAD

    Subfield(FIELD, ';') as FIELD,

....

swuehl
MVP
MVP

Alternatively, use multiple expressions that filter your records instead of a dimension.

tresesco
MVP
MVP

Or, you may try like:

Capture.JPG

Not applicable
Author

How to i combine it with a column that is based on month?

tresesco
MVP
MVP

If this requirement is something not very adhoc in nature, you should deal with it in the script. Could you share a real representative sample (like you said month column association), to help better ?

MarcoWedel

Hi,

not as a recommended solution but to show what could be done using chart expressions only without hard coded label values:

QlikCommunity_Thread_277429_Pic1.JPG

QlikCommunity_Thread_277429_Pic2.JPG

QlikCommunity_Thread_277429_Pic3.JPG

I guess the best approach to this problem would be to create a [Label] field from your [Labels] values using the 2-parameter Subfield() function like Stefan already suggested.

hope this helps

regards

Marco