<?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 Using a variable as a pivot table expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-variable-as-a-pivot-table-expression/m-p/212213#M502937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just trying to get a larger picture. I'll try one more time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7711.Variable.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/7711.Variable.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Sep 2010 18:21:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-21T18:21:37Z</dc:date>
    <item>
      <title>Using a variable as a pivot table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-as-a-pivot-table-expression/m-p/212211#M502935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable [vTruckCnt] set to equal the expression [SUM(UNUnitRecCnt)/7]. Please see the image below. When my chart expression is set to equal the variable [vTruckCnt], it returns the wrong numbers and basically sums the two individual numbers to give me 352.14&lt;/P&gt;&lt;P&gt;If I change the chart expression to the same expression [vTruckCnt] is set to equal, namely [SUM(UNUnitRecCnt)/7], it returns the proper values, those being 174.57 and 177.57&lt;/P&gt;&lt;P&gt;Any idea why this does not work? I want to be able to use the variable as the expression because I use it, and other expressions, many many times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2418_sourceID:2418" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 18:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-as-a-pivot-table-expression/m-p/212211#M502935</guid>
      <dc:creator />
      <dc:date>2010-09-21T18:18:19Z</dc:date>
    </item>
    <item>
      <title>Using a variable as a pivot table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-as-a-pivot-table-expression/m-p/212212#M502936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/4555.Variable.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x500/__key/CommunityServer.Discussions.Components.Files/11/4555.Variable.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 18:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-as-a-pivot-table-expression/m-p/212212#M502936</guid>
      <dc:creator />
      <dc:date>2010-09-21T18:18:55Z</dc:date>
    </item>
    <item>
      <title>Using a variable as a pivot table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-as-a-pivot-table-expression/m-p/212213#M502937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just trying to get a larger picture. I'll try one more time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7711.Variable.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/7711.Variable.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 18:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-as-a-pivot-table-expression/m-p/212213#M502937</guid>
      <dc:creator />
      <dc:date>2010-09-21T18:21:37Z</dc:date>
    </item>
    <item>
      <title>Using a variable as a pivot table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-as-a-pivot-table-expression/m-p/212214#M502938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting an equals sign before your variable value:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=SUM(UNUnitRecCnt)/7&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then use the variable in your expression the same way you are:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;$(vTruckCnt)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I believe there was a recent discussion on the board that talked about how using an equal sign or not can affect the results. I don't remember the exact details, but it is worth a try.&lt;/P&gt;&lt;P&gt;PS your images work fine when clicked on. I'm not sure if you can make them any bigger in the actual post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 18:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-as-a-pivot-table-expression/m-p/212214#M502938</guid>
      <dc:creator />
      <dc:date>2010-09-21T18:22:30Z</dc:date>
    </item>
    <item>
      <title>Using a variable as a pivot table expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-as-a-pivot-table-expression/m-p/212215#M502939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info on the pictures... I didn't realize they were clickable in the post.&lt;/P&gt;&lt;P&gt;As for the variable, I have tried the following variations and nothing seems to work;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;=SUM(UNUnitRecCnt)/7&lt;/LI&gt;&lt;LI&gt;=(SUM(UNUnitRecCnt)/7)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hold on a second... Well you got me looking in the right spot. As it turns out, the = sign must be removed! The correct expression to place in the variable is the following;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SUM(UNUnitRecCnt)/7&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And now it all works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks NMiller!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 18:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-as-a-pivot-table-expression/m-p/212215#M502939</guid>
      <dc:creator />
      <dc:date>2010-09-21T18:36:13Z</dc:date>
    </item>
  </channel>
</rss>

