<?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 Adding Columns in the Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236252#M87450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NMiller,&lt;/P&gt;&lt;P&gt;I tried with my original data. To my surprise, I am not able to perform the same operation as you did. Can you please see the attached file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Feb 2010 16:38:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-14T16:38:10Z</dc:date>
    <item>
      <title>Adding Columns in the Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236249#M87447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Look the attached QVW file.&lt;/P&gt;&lt;P&gt;Is it possible to combine table 2, table 3 and table 4 with table1. In table1, I need to have three more columns to be added at the end like Sum(F3), Count(F3), Avg(F3). But if you see I have table2, table3 and table4 with only one dimension as F2. Is it logically possible to get the desired result. I use 8.2 version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 15:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236249#M87447</guid>
      <dc:creator />
      <dc:date>2010-02-10T15:15:05Z</dc:date>
    </item>
    <item>
      <title>Adding Columns in the Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236250#M87448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is a nice or easy way to do it. I'd really like to see a more flexible table builder in a future QlikView version (see MS SSRS).&lt;/P&gt;&lt;P&gt;With a combination of another Inline Load and some modifications to the chart (see the Expression and the Sort Expression on Name), you may be able to put together something that works.&lt;/P&gt;&lt;P&gt;I've attached my sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 15:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236250#M87448</guid>
      <dc:creator />
      <dc:date>2010-02-10T15:46:39Z</dc:date>
    </item>
    <item>
      <title>Adding Columns in the Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236251#M87449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic. I will try with my original document. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 17:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236251#M87449</guid>
      <dc:creator />
      <dc:date>2010-02-10T17:05:39Z</dc:date>
    </item>
    <item>
      <title>Adding Columns in the Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236252#M87450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NMiller,&lt;/P&gt;&lt;P&gt;I tried with my original data. To my surprise, I am not able to perform the same operation as you did. Can you please see the attached file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Feb 2010 16:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236252#M87450</guid>
      <dc:creator />
      <dc:date>2010-02-14T16:38:10Z</dc:date>
    </item>
    <item>
      <title>Adding Columns in the Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236253#M87451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure why it doesn't work, but I think it has to do with aggregation.&lt;/P&gt;&lt;P&gt;Instead of: If(week='Avg'...&lt;BR /&gt;You need: If(Concat(TOTAL &amp;lt;week&amp;gt; week)='Avg'&lt;/P&gt;&lt;P&gt;I tried a few other things, but that was the first thing that worked. It seems a little weird, like there should be a better way to do it, but it works.&lt;/P&gt;&lt;P&gt;Here's the entire Amount expression:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=If(Concat(TOTAL &amp;lt;week&amp;gt; week)='Avg', Avg(TOTAL &amp;lt;sv_user&amp;gt; q_id),&lt;BR /&gt;If(Concat(TOTAL &amp;lt;week&amp;gt; week)='Sum', Sum(TOTAL &amp;lt;sv_user&amp;gt; q_id),&lt;BR /&gt;If(Concat(TOTAL &amp;lt;week&amp;gt; week)='Count', Count(TOTAL &amp;lt;sv_user&amp;gt; q_id), count(q_id))))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;EDIT: It seems the new design of the forum broke the file upload ability. Try using the expression, I'll try to post the file later if need be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2010 21:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236253#M87451</guid>
      <dc:creator />
      <dc:date>2010-02-15T21:07:48Z</dc:date>
    </item>
    <item>
      <title>Adding Columns in the Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236254#M87452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it works now. But, when I select any field (say through multibox) the sum, avg and count columns goes off. Is there any way of retaining it when selections are made.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 15:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236254#M87452</guid>
      <dc:creator />
      <dc:date>2010-02-16T15:53:04Z</dc:date>
    </item>
    <item>
      <title>Adding Columns in the Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236255#M87453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if you modify the Concat equation to add {1}. e.g.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=If(Concat({1}TOTAL &amp;lt;week&amp;gt; week)='Avg', Avg(TOTAL &amp;lt;sv_user&amp;gt; q_id),&lt;BR /&gt;If(Concat({1}TOTAL &amp;lt;week&amp;gt; week)='Sum', Sum(TOTAL &amp;lt;sv_user&amp;gt; q_id),&lt;BR /&gt;If(Concat({1}TOTAL &amp;lt;week&amp;gt; week)='Count', Count(TOTAL &amp;lt;sv_user&amp;gt; q_id),&lt;BR /&gt;count(q_id))))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That seems to work with selections on sv_user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 16:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236255#M87453</guid>
      <dc:creator />
      <dc:date>2010-02-16T16:39:52Z</dc:date>
    </item>
    <item>
      <title>Adding Columns in the Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236256#M87454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get an expression error when I used your expression. I use version 8.2. Is this creating problem?&lt;/P&gt;&lt;P&gt;Can i use for multiple selections as well with this formula.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 17:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236256#M87454</guid>
      <dc:creator />
      <dc:date>2010-02-16T17:14:09Z</dc:date>
    </item>
    <item>
      <title>Adding Columns in the Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236257#M87455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the last thing I added is Set Analysis, which is only available in version 8.5 or later. You need a way to ignore selections, because the dummy week fields are not associated with any sv_users. When you make a selection on sv_user that excludes those dummy fields. I don't know if that is possible without Set Analysis.&lt;/P&gt;&lt;P&gt;One thing you may try is instead of loading those three dummy fields as an inline load, do another load with each of your sv_users and each of the dummy fields.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Dummy:&lt;BR /&gt;LOAD sv_user, 'Sum' As week&lt;BR /&gt;RESIDENT Test2;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;And do that for each dummy field. Unfortunately, that doesn't load only unique instances of sv_user. It may be something to try though. Really, like everything else in QlikView, it's a lot easier with Set Analysis.&lt;/P&gt;&lt;P&gt;EDIT: If you are able to get records for each of your sv_users and each of the dummy fields as week, then it should work. If you do that, then you can go back to the original version of the expression I gave:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=If(week='Avg', Avg(TOTAL &amp;lt;sv_user&amp;gt; q_id),&lt;BR /&gt;If(week='Sum', Sum(TOTAL &amp;lt;sv_user&amp;gt; q_id),&lt;BR /&gt;If(week='Count', Count(TOTAL &amp;lt;sv_user&amp;gt; q_id), count(q_id))))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I'll see if I can upload a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 17:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Columns-in-the-Pivot-Table/m-p/236257#M87455</guid>
      <dc:creator />
      <dc:date>2010-02-16T17:30:24Z</dc:date>
    </item>
  </channel>
</rss>

