Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ccifaldi
Contributor
Contributor

Set analysis with % sign

Hello! I have am trying to use set analysis but my field value contains a percent sign. What is the workaround for this? 

Count({<Name={'Name'},Question={'Question'},Response={'100%'}>} Response)

I have tried '100*', "100%", "100*",'*100*' and none have worked. Thanks! 

Labels (1)
1 Solution

Accepted Solutions
rubenmarin

Hi, maybe the value stored in the field is a number, the % is just in the presentation layer, in that case the number would be a simple '1': Count({<Name={'Name'},Question={'Question'},Response={'1'}>} Response)

View solution in original post

4 Replies
KGalloway
Creator II
Creator II

Could you try the following?

Count({<Name={'Name'},Question={'Question'},Response={'100$(=chr(37))'}>} Response)

The $(=chr(37)) part inserts a '%' character into the string you're comparing against Response.

ccifaldi
Contributor
Contributor
Author

Updating to 

Count({<Name={'Name'},Question={'Question'},
Response={'100$(=chr(37))'}>} Response)

yields a null result unfortunately. Maybe I still have the syntax wrong?

KGalloway
Creator II
Creator II

Could you provide some example data? I would be able to test it better if I had a few rows, some which should be counted under the set analysis and some which should not.

rubenmarin

Hi, maybe the value stored in the field is a number, the % is just in the presentation layer, in that case the number would be a simple '1': Count({<Name={'Name'},Question={'Question'},Response={'1'}>} Response)