<?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: Using variables in Straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168347#M629874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Massimo‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 08:41:52 GMT</pubDate>
    <dc:creator>kashjaniqlik</dc:creator>
    <dc:date>2016-08-11T08:41:52Z</dc:date>
    <item>
      <title>Using variables in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168342#M629869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable to do a sum of a field in my data model. The result is then split by another field in the column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g. Sum of total customers. This is then split by countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UK - 500&lt;/P&gt;&lt;P&gt;US - 300&lt;/P&gt;&lt;P&gt;Total - 800&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If I use a straight table with Countries as dimension and =SUM(totalcustomers) as expression, this works all OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I then use a variable to store the sum of total customers and use this variable as expression, the straight table doesn't seem to split by countries. It shows the total customers for all countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UK - 800&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;US - 800&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 16:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168342#M629869</guid>
      <dc:creator>kashjaniqlik</dc:creator>
      <dc:date>2016-08-10T16:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168343#M629870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you used the '=' when defining your variable? Try '&lt;STRONG&gt;=Sum(totalcustomers)&lt;/STRONG&gt;' vs '&lt;STRONG&gt;Sum(totalcustomers)&lt;/STRONG&gt;'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 16:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168343#M629870</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-10T16:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168344#M629871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample of your app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 16:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168344#M629871</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2016-08-10T16:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168345#M629872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to read here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3406"&gt;The Magic of Variables&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 18:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168345#M629872</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-08-10T18:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168346#M629873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes all variables are defined with an "=" sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vTotalCustomers &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;= '=SUM(TotalCustomers)'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 08:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168346#M629873</guid>
      <dc:creator>kashjaniqlik</dc:creator>
      <dc:date>2016-08-11T08:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168347#M629874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Massimo‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 08:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168347#M629874</guid>
      <dc:creator>kashjaniqlik</dc:creator>
      <dc:date>2016-08-11T08:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in Straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168348#M629875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with one of&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;vTotalCustomers &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;= Sum(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px;"&gt;TotalCustomers&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; color: #0000ff;"&gt;Let&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;vTotalCustomers &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;= 'Sum(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px;"&gt;TotalCustomers&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em; background-color: #f5faf0;"&gt;)' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then as expression in chart&lt;/P&gt;&lt;P&gt;$(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;vTotalCustomers&lt;/EM&gt;&lt;/STRONG&gt;) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 08:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-Straight-table/m-p/1168348#M629875</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-08-11T08:42:35Z</dc:date>
    </item>
  </channel>
</rss>

