<?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: Sum of Columns in Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060721#M355140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks guys, I was hoping not having to hard code all the fields as I have about 20-30 of them but it does look like in this instance I'm rather limited on solutions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a macro which creates the chart anyhow so will just try added some extra logic to create the Total expression field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Mar 2016 16:55:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-12T16:55:52Z</dc:date>
    <item>
      <title>Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060714#M355133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I'm not sure if I'm missing a trick but I have a requirement where I have to show the Sum of measures of a row in a Pivot table but with dimensions going across and the measures going down, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="117784" alt="Pivot_Structure.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117784_Pivot_Structure.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 15:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060714#M355133</guid>
      <dc:creator />
      <dc:date>2016-03-12T15:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060715#M355134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to the Presentation tab and in the top-left corner, turn on "Show Partial Sum".&lt;/P&gt;&lt;P&gt;You might need to play a bit with on which dimension to turn this on before you figured out which is the correct one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 16:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060715#M355134</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-03-12T16:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060716#M355135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using the Sales as Dimension or Customer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first Table shows Customer as Dimension and the second shows Sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you have not Transposed the Dimension to Column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, please upload the App.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 16:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060716#M355135</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2016-03-12T16:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060717#M355136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for the reply, however I did already try this but it simply moves back the Dimensions from column format (across the top) back to row format, I think it needs maybe another Expression to be used as a Total of all values for a row but really not sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 16:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060717#M355136</guid>
      <dc:creator />
      <dc:date>2016-03-12T16:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060718#M355137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the the Expression Total&amp;nbsp; using column(1)+column(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you cab simply drag the expression to Column and drag the dimension to raw if you are using pivot table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 16:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060718#M355137</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-12T16:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060719#M355138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this can help.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117791_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 16:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060719#M355138</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-12T16:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060720#M355139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the original source data is in the format of the second table (i.e. Company Name being a column, not a Dimension), however on import I have modeled it correctly having Company as Dimension and sales as measures, the problem is I still need to display it in the old format having Company as Columns and the sales measures appearing in Row format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have this Pivot chart in Qlikview but just can't get the Total to show as the last row so summing all sale types per company.&lt;IMG alt="Pivot.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117788_Pivot.PNG" style="height: 221px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 16:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060720#M355139</guid>
      <dc:creator />
      <dc:date>2016-03-12T16:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060721#M355140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks guys, I was hoping not having to hard code all the fields as I have about 20-30 of them but it does look like in this instance I'm rather limited on solutions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a macro which creates the chart anyhow so will just try added some extra logic to create the Total expression field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 16:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060721#M355140</guid>
      <dc:creator />
      <dc:date>2016-03-12T16:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060722#M355141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you mean with "hard code all fields"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 18:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060722#M355141</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-03-12T18:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060723#M355142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well in my fact I have lets say 20 expressions, to sum all of them wouldn't I need to add each field name by hard coding the field names or doing&amp;nbsp; Column(1) + Column(2) .., or is there a dynamic way of doing this, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat('if(isnull([' &amp;amp; [FieldName] &amp;amp; ']),0,' &amp;amp; '[' &amp;amp; [FieldName] &amp;amp; ']' &amp;amp; ')' &amp;amp; ' + ')&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 21:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060723#M355142</guid>
      <dc:creator />
      <dc:date>2016-03-12T21:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060724#M355143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this, I created variable in script and later used in expression - &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 03:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060724#M355143</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-13T03:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060725#M355144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let vNoOfFields = NoOfFields('T1');&lt;/P&gt;&lt;P&gt;Let vConcat='';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i = 1 to vNoOfFields-1&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vConcat = vConcat &amp;amp; 'Sum(['&amp;amp;FieldName(i+1,T1)&amp;amp;'])+';&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;vConcat = Left(vConcat,Len(vConcat)-1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 03:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060725#M355144</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-13T03:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Columns in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060726#M355145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I think building the string in the load script looks like the best approach, thanks for the tip!!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 19:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Columns-in-Pivot-table/m-p/1060726#M355145</guid>
      <dc:creator />
      <dc:date>2016-03-13T19:10:08Z</dc:date>
    </item>
  </channel>
</rss>

