Qlik Community

App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER 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

1 Solution

Accepted Solutions
Henric_Cronström

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
dilipranjith
Partner
Partner

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

Henric_Cronström

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