<?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: How to display value from other columns in Pivot Table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-display-value-from-other-columns-in-Pivot-Table/m-p/1768072#M506477</link>
    <description>&lt;P&gt;Week 47 to 49 shouldn't be shown. The table I created is on for purposes showing it in details.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt; [Week] = {"=[Week] &amp;gt; $(vCurrentWeek)} &amp;gt;}Aggr(AVG({&amp;lt; [Week] = {"=[Week] &amp;gt;= $(vStartWeek) AND [Week] &amp;lt; $(vEndWeek)"}&amp;gt;}&amp;nbsp; [Hours]), [Cust],[Week]))&lt;/P&gt;&lt;P&gt;Where: declared as variables look like below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;vCurrentWeek = Week(Today())&amp;nbsp;&lt;/P&gt;&lt;P&gt;vStartWeek = Week(Today()-3)&lt;/P&gt;&lt;P&gt;vEndWeek = [Week]&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it gives me 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Dec 2020 07:25:30 GMT</pubDate>
    <dc:creator>jessbanaga</dc:creator>
    <dc:date>2020-12-12T07:25:30Z</dc:date>
    <item>
      <title>How to display value from other columns in Pivot Table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-value-from-other-columns-in-Pivot-Table/m-p/1767858#M506475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to get the sum or average of previous columns and display it in the current and future columns. Basically, the columns are number of weeks of the year.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Cust&lt;/TD&gt;&lt;TD&gt;Category&lt;/TD&gt;&lt;TD&gt;W47&lt;/TD&gt;&lt;TD&gt;W48&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;W49&lt;/TD&gt;&lt;TD&gt;W50&lt;/TD&gt;&lt;TD&gt;W51&lt;/TD&gt;&lt;TD&gt;W52&lt;/TD&gt;&lt;TD&gt;W53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;TotalHours&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;AvgHours&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;EM&gt;30&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;&lt;STRONG&gt;30&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;EM&gt;32&lt;/EM&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;&lt;STRONG&gt;30.3&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently we are at Week 50 (W50) in the pivot, the value to reflect in W50 of AvgHours Category should be Average hours of W47, W48, and W49 thereby W50 = 30 (in bold and italic).&lt;/P&gt;&lt;P&gt;Same goes with the succeeding weeks. W51 value should be average of&amp;nbsp;of W47, W48, W49, and W50. And so on...&lt;/P&gt;&lt;P&gt;The Total Hours is SUM(Hours) only will work. But the AvgHours is very challenging is it scoped with the week headers.&lt;/P&gt;&lt;P&gt;Do you have an idea?&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-value-from-other-columns-in-Pivot-Table/m-p/1767858#M506475</guid>
      <dc:creator>jessbanaga</dc:creator>
      <dc:date>2024-11-15T23:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to display value from other columns in Pivot Table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-value-from-other-columns-in-Pivot-Table/m-p/1768051#M506476</link>
      <description>&lt;P&gt;you can do that in the expression - not referencing the columns but in your expression you indicate which weeks to average.&amp;nbsp; you may also need to bridge the weeks going multiple weeks back&lt;/P&gt;&lt;P&gt;also how will the average for weeks 47 to 49 be calculated?&amp;nbsp; it appears the average is cumulative.&amp;nbsp; how about weeks before week 47?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 20:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-value-from-other-columns-in-Pivot-Table/m-p/1768051#M506476</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-11T20:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to display value from other columns in Pivot Table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-value-from-other-columns-in-Pivot-Table/m-p/1768072#M506477</link>
      <description>&lt;P&gt;Week 47 to 49 shouldn't be shown. The table I created is on for purposes showing it in details.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt; [Week] = {"=[Week] &amp;gt; $(vCurrentWeek)} &amp;gt;}Aggr(AVG({&amp;lt; [Week] = {"=[Week] &amp;gt;= $(vStartWeek) AND [Week] &amp;lt; $(vEndWeek)"}&amp;gt;}&amp;nbsp; [Hours]), [Cust],[Week]))&lt;/P&gt;&lt;P&gt;Where: declared as variables look like below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;vCurrentWeek = Week(Today())&amp;nbsp;&lt;/P&gt;&lt;P&gt;vStartWeek = Week(Today()-3)&lt;/P&gt;&lt;P&gt;vEndWeek = [Week]&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it gives me 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 07:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-value-from-other-columns-in-Pivot-Table/m-p/1768072#M506477</guid>
      <dc:creator>jessbanaga</dc:creator>
      <dc:date>2020-12-12T07:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to display value from other columns in Pivot Table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-value-from-other-columns-in-Pivot-Table/m-p/1768081#M506478</link>
      <description>&lt;P&gt;look at this&lt;/P&gt;&lt;P&gt;it has provision for historical weeks but if you just need current week going forward you just use CUMULATIVE datetype&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 12:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-value-from-other-columns-in-Pivot-Table/m-p/1768081#M506478</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-12T12:12:02Z</dc:date>
    </item>
  </channel>
</rss>

