Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
vkish16161
Creator III
Creator III

Bug ?? in Set Expressions Builder in QS Nov 2018?

All,

There was an update to the Set Analysis syntax Quotes in Set Analysis‌ (Sep 2017)

Today, in QS Cloud (Nov 2018) there is a SET expression builder that got released.

I believe there is a minor flaw in it :

1.JPG

Above expression was built using the Set Analysis Builder and it wrapped the year value 2013 in single quotes. As far as I'm aware, the wrapping in quotes should be done if the value is a string literal. So it should be Year={2013}.

Or am I wrong?

mto hic

Labels (1)
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

No, it works properly. Whether you should use

   {<Year={2014}>} ,

   {<Year={'2014'}>} or

   {<Year={"2014"}>}

is a matter of taste. All three will work for this field value. Single quotes denote explicit field values, just as Dilip points out.

No quotes will cause problems if the field value contains spaces. Double quotes will cause problems if there are two field values that only differ in the upper/lower case. So, we chose to wrap all field values in single quotes, because then it always works.

HIC

View solution in original post

2 Replies
dplr-rn
Partner - Master III
Partner - Master III

Single quotes should denote literals, i.e. explicit field values.

hic
Former Employee
Former Employee

No, it works properly. Whether you should use

   {<Year={2014}>} ,

   {<Year={'2014'}>} or

   {<Year={"2014"}>}

is a matter of taste. All three will work for this field value. Single quotes denote explicit field values, just as Dilip points out.

No quotes will cause problems if the field value contains spaces. Double quotes will cause problems if there are two field values that only differ in the upper/lower case. So, we chose to wrap all field values in single quotes, because then it always works.

HIC