<?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 from Pivot table data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-from-Pivot-table-data/m-p/1458877#M795343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Avg(TOTAL &amp;lt;day&amp;gt; [Worked Days Expression], year))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jan 2018 15:54:35 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2018-01-04T15:54:35Z</dc:date>
    <item>
      <title>Variable from Pivot table data</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-from-Pivot-table-data/m-p/1458876#M795342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table with the amount of worked days for each employee,calculated as expressions from the employees' activities, per year. I need to calculate an average an worked days per year and use the said average on some other pivot tables. So as a solution I was thinking about making the said average a variable that I can call in other pivot tables. &lt;/P&gt;&lt;P&gt;Now the question is:&lt;/P&gt;&lt;P&gt;Is there a way in which I can reference an expression in a pivot table, when calculating a variable? If not, is there any other solution to my problem? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-from-Pivot-table-data/m-p/1458876#M795342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable from Pivot table data</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-from-Pivot-table-data/m-p/1458877#M795343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Avg(TOTAL &amp;lt;day&amp;gt; [Worked Days Expression], year))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 15:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-from-Pivot-table-data/m-p/1458877#M795343</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-04T15:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variable from Pivot table data</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-from-Pivot-table-data/m-p/1458878#M795344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Avg(TOTAL &amp;lt;day&amp;gt; [Worked Days Expression], year))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 15:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-from-Pivot-table-data/m-p/1458878#M795344</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-04T15:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variable from Pivot table data</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-from-Pivot-table-data/m-p/1458879#M795345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You couldn't put the multiple results of a pivot within a variable and also you couldn't refer from one object to another. You will always need to calculate your needed results within one object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case you might be getting your results with nested aggregations with the aggr-function, maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(aggr(count(WorkingDays), Employee, Year))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get an explanation what is meant, see: &lt;A href="https://community.qlik.com/qlik-blogpost/2967"&gt;AGGR...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 15:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-from-Pivot-table-data/m-p/1458879#M795345</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-04T15:59:46Z</dc:date>
    </item>
  </channel>
</rss>

