<?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 How to adjust formula with new level added in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-adjust-formula-with-new-level-added/m-p/1461635#M436178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently I have a pivot table that has 2 levels, where I have formulas to calculate percent to total and avg costs,etc on 2 levels &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the levels are fabric type and body class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the current formula is like this (percent to total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[style],[stylecol]&amp;gt;} sales) / Sum(TOTAL &amp;lt;[2bfasefg]&amp;gt;{&amp;lt;[style],[stylecol]&amp;gt;} sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&amp;nbsp; (average retail)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[style]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[stylecol]&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;) * &lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;[2retail]&lt;/SPAN&gt;), &lt;SPAN style="color: #800000;"&gt;[style]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[stylecol]&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;[style]&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;[stylecol]&lt;/SPAN&gt;))/&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[style]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[stylecol]&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;[style]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[stylecol]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;))&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the thing is.. when it is 2 levels on the pivot table it calculates fine and shows all the calculations at all the levels.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I add the 3rd level(customer)..&amp;nbsp; it doesn't calculate all the levels..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expanded1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189503_expanded1.JPG" style="width: 620px; height: 83px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only when u select one specific customer then it will calculate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expanded2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/189504_expanded2.JPG" style="width: 620px; height: 109px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure how to deal with this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2018 23:17:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-09T23:17:06Z</dc:date>
    <item>
      <title>How to adjust formula with new level added</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-adjust-formula-with-new-level-added/m-p/1461635#M436178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently I have a pivot table that has 2 levels, where I have formulas to calculate percent to total and avg costs,etc on 2 levels &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the levels are fabric type and body class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the current formula is like this (percent to total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[style],[stylecol]&amp;gt;} sales) / Sum(TOTAL &amp;lt;[2bfasefg]&amp;gt;{&amp;lt;[style],[stylecol]&amp;gt;} sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&amp;nbsp; (average retail)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[style]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[stylecol]&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;) * &lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;[2retail]&lt;/SPAN&gt;), &lt;SPAN style="color: #800000;"&gt;[style]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[stylecol]&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;[style]&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;[stylecol]&lt;/SPAN&gt;))/&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[style]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[stylecol]&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;[style]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[stylecol]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;))&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the thing is.. when it is 2 levels on the pivot table it calculates fine and shows all the calculations at all the levels.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I add the 3rd level(customer)..&amp;nbsp; it doesn't calculate all the levels..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expanded1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189503_expanded1.JPG" style="width: 620px; height: 83px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only when u select one specific customer then it will calculate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expanded2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/189504_expanded2.JPG" style="width: 620px; height: 109px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure how to deal with this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 23:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-adjust-formula-with-new-level-added/m-p/1461635#M436178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T23:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust formula with new level added</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-adjust-formula-with-new-level-added/m-p/1461636#M436179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample file to see what you have and provide the output you expect to see from the sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 01:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-adjust-formula-with-new-level-added/m-p/1461636#M436179</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-10T01:02:31Z</dc:date>
    </item>
  </channel>
</rss>

