<?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: Variable to hold multiple values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-to-hold-multiple-values/m-p/1122819#M369908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you do is almost correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To define the variable as &lt;/P&gt;&lt;P&gt;'A','B','121'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the calculation using expression &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Product&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #008080;"&gt;{ $(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vProductCategory1) &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;gt;}TotalDue)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2016 02:55:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-22T02:55:20Z</dc:date>
    <item>
      <title>Variable to hold multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-hold-multiple-values/m-p/1122817#M369906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #000000;"&gt;I want a variable to store multiple product values so that I don't have to manually enter all the products like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sum({&amp;lt;Product&lt;STRONG&gt;=&lt;SPAN style="color: #0000ff;"&gt;{'A','B,'11','121','DD','E'}&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;gt;}TotalDue)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #000000;"&gt;Instead I want to define a variable to hold different categories of products.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #000000;"&gt;For instance, vProductCategory1 to match only Product "A", "B", and "121" so that I can use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;&lt;/SPAN&gt;Product&lt;STRONG style="font-size: 13.3333px;"&gt;=&lt;SPAN style="color: #008080;"&gt;{&lt;SPAN style="font-size: 13.3333px;"&gt;vProductCategory1&lt;/SPAN&gt;'}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;gt;}TotalDue).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #000000;"&gt;So, how do I enter multiple values on a variable? Does below look right? Separate values by a semicolon inside single quotes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132127_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 02:45:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-hold-multiple-values/m-p/1122817#M369906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-22T02:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variable to hold multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-hold-multiple-values/m-p/1122818#M369907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 02:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-hold-multiple-values/m-p/1122818#M369907</guid>
      <dc:creator />
      <dc:date>2016-07-22T02:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable to hold multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-hold-multiple-values/m-p/1122819#M369908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you do is almost correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To define the variable as &lt;/P&gt;&lt;P&gt;'A','B','121'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the calculation using expression &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Product&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #008080;"&gt;{ $(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vProductCategory1) &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;gt;}TotalDue)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 02:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-hold-multiple-values/m-p/1122819#M369908</guid>
      <dc:creator />
      <dc:date>2016-07-22T02:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variable to hold multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-to-hold-multiple-values/m-p/1122820#M369909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be common separated values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #008080; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt; vProductCategory1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #008080; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #008080; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;Definition= &lt;STRONG style="color: #0000ff; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;'A','B,'121'&amp;nbsp; or&amp;nbsp; A,B,121&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #008080; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #008080; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;your Expression will be &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #008080; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum({&amp;lt;&lt;/SPAN&gt;Product&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #008080;"&gt;{$(=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vProductCategory1)&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;gt;}TotalDue).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 03:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-to-hold-multiple-values/m-p/1122820#M369909</guid>
      <dc:creator>maheshkuttappa</dc:creator>
      <dc:date>2016-07-22T03:26:07Z</dc:date>
    </item>
  </channel>
</rss>

