<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: create variable with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019772#M945122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;item_number ; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Item_active ; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Item_dutch&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;000001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;true&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;000002&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;true&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; false&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;000003&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; false&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; true&lt;/P&gt;&lt;P&gt;000004&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; false&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want to make a variable vItem where i only have the item_numbers where [Item_active] = true and [Item_dutch] = false (so only [item_number] 000002 is visible).&lt;/P&gt;&lt;P&gt;While typing this i see the reaction from Petter and this one works.&lt;/P&gt;&lt;P&gt;could it be that i used a double quote instead of a single? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2016 13:51:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-04T13:51:45Z</dc:date>
    <item>
      <title>create variable with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019769#M945119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to make a variable with a set analysis where i discriminate on 2 logical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case:&lt;/P&gt;&lt;P&gt;I want to create variable vItem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item_number (integer) &lt;/P&gt;&lt;P&gt;Item_active (logical)&lt;/P&gt;&lt;P&gt;Item_dutch (logical)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the documents and the cases on the community it should be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$({&amp;lt; [Item_number] = {*} - [Item_active] = {"false"}, [Item_dutch] = {"true"} &amp;gt;})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately this doesn't work.&lt;/P&gt;&lt;P&gt;is there a solution for this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 12:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019769#M945119</guid>
      <dc:creator />
      <dc:date>2016-01-04T12:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: create variable with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019770#M945120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share some data with your expected output. Just seeing the fields and expression doesn't provide us with much information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019770#M945120</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-04T13:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: create variable with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019771#M945121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set expression should probably be written like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;[item_number]=,&lt;/SPAN&gt;[item_active]={'true'},[item_dutch}={'true'}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it could be put into a variable vItem and used as you see here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum( $(vItem) Price )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019771#M945121</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-01-04T13:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: create variable with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019772#M945122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;item_number ; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Item_active ; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Item_dutch&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;000001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;true&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;000002&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;true&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; false&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;000003&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; false&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; true&lt;/P&gt;&lt;P&gt;000004&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; false&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want to make a variable vItem where i only have the item_numbers where [Item_active] = true and [Item_dutch] = false (so only [item_number] 000002 is visible).&lt;/P&gt;&lt;P&gt;While typing this i see the reaction from Petter and this one works.&lt;/P&gt;&lt;P&gt;could it be that i used a double quote instead of a single? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019772#M945122</guid>
      <dc:creator />
      <dc:date>2016-01-04T13:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: create variable with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019773#M945123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using double quotes is not the problem with your set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you cannot have a full expression on the left hand side of the equal sign. The one with the minus operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the left hand side you are only allowed to have a field name and then comes either =&amp;nbsp; -=&amp;nbsp; +=&amp;nbsp; /=&amp;nbsp; or *=.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 14:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019773#M945123</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-01-04T14:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: create variable with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019774#M945124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petter, Thanks for your reaction.&lt;/P&gt;&lt;P&gt;What I tried with the "minus operator" comes from a document (Fabrice AUNEZ - version 2.1). On page 7/8 the expressions with exceptions are described. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;All MANUFACTURERs except those whose name begins with ENT&lt;/P&gt;&lt;P&gt;{&amp;lt;MANUFACTURER_LDESC = {"*"} - {"ENT*"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your answer i understand that this is correct aslong the left hand side isn't a full expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 14:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019774#M945124</guid>
      <dc:creator />
      <dc:date>2016-01-04T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: create variable with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019775#M945125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking closer at your expression I have further remarks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The allowed syntax for set expressions don't allow for an expression like you have made. There is a difference between Fabrice's expression and yours since you employ the equal sign twice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the left hand side of an&amp;nbsp; =&amp;nbsp;&amp;nbsp; +=&amp;nbsp; -=&amp;nbsp; /= or *=&amp;nbsp;&amp;nbsp; you are allowed one field name which exist in the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the right hand side you are allowed an element set or another field but not both. Furthermore you can't do a kind of selection from this field name if you use that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my suggestion that seemed to work for you could be modified to be more like yours:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt; [Item_number] = {"*"}, [Item_active] -={'false'}, [Item_dutch] = {'true'} &amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The double quotation-marks turn the strings into a search expression which will in many cases also work like literal constants which use single quotation-marks as long as you don't use real search expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 23:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-variable-with-set-analysis/m-p/1019775#M945125</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-01-04T23:08:12Z</dc:date>
    </item>
  </channel>
</rss>

