Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
chiso_chiso
Creator
Creator

Crosstable and use of pick

Gurus,

I have a Crosstable with Attribute field called Question and Data field called Answers.

I would like to use PICK function to qualify some fields into a variable but I keep getting errors.

My statement is;

pick(wildMatch(Question,'*BLACK LABLE*','*BLK LBL*','*CASTLE LIGHT*','*CSTL LTE*'), 'Black Label','Black Label','Castle Light','Castle Light')

Kindly assist.

7 Replies
Gysbert_Wassenaar

I don't understand what you're trying to do. Can you post a document that demonstrates the problem?


talk is cheap, supply exceeds demand
chiso_chiso
Creator
Creator
Author

Find attached.

Regards

Gysbert_Wassenaar

That document contains no data. And more importantly it does not give a single clue as to what the problem is that you're having trouble with.


talk is cheap, supply exceeds demand
Not applicable

The statement you are using seems fine to me. If you select 'BLACK LABLE' from Question listbox, don't you get 'Black Label' value in the variable?

Thanks,

Singh

chiso_chiso
Creator
Creator
Author

Angad,

No its not being returned. Actually 'Question' is not even being highlighted as a field name when i am writing my expression. Is it because its a crosstable?

danieloberbilli
Specialist II
Specialist II

The attribute and data field should be accessible as normal fields. But your script and usage of variables is pretty complex - I think you need to include the actual data in your example to understand what is actually happening.

chiso_chiso
Creator
Creator
Author

Find attached my model.

I have exit the script pre-maturely just to load the data as completing it is bringing the said errors.

Kindly assist.