<?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 Problem with % of column total using calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189711#M52486</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;I have an object that calculates sales by product as a % of total weeky sales (as shown below).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3396_sourceID:3396" /&gt;&lt;/P&gt;&lt;P&gt;(click image to enlarge)&lt;/P&gt;&lt;P&gt;My dimension (Week) is actually a calculated dimension that I use to overcome the problem of when week 1 or 52/3 covers more than one year e.g. 2010 week 52 starts on 27 Dec 2010 and finishes on 02 Jan 2011.&lt;/P&gt;&lt;P&gt;Normally, I would simply use sum(sales) / sum(total &amp;lt;[Week]&amp;gt; sales) to calculate % of weekly sales for each product. But, because it's a calculated dimension, this won't work. I've tried using the calculated dimension's label (called [Calculated Week] ) i.e. sum(total &amp;lt;[Calculated Week]&amp;gt; sales) but the label isn't recognised so this doesn't work. I've also tried pasting in the calculated dimension's expression but this doesn't work either.&lt;/P&gt;&lt;P&gt;Does anyone have a solution?&lt;/P&gt;&lt;P&gt;If necessary, I can post a test app with the object in which may make more sense.&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;APS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jan 2011 17:37:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-27T17:37:27Z</dc:date>
    <item>
      <title>Problem with % of column total using calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189711#M52486</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;I have an object that calculates sales by product as a % of total weeky sales (as shown below).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3396_sourceID:3396" /&gt;&lt;/P&gt;&lt;P&gt;(click image to enlarge)&lt;/P&gt;&lt;P&gt;My dimension (Week) is actually a calculated dimension that I use to overcome the problem of when week 1 or 52/3 covers more than one year e.g. 2010 week 52 starts on 27 Dec 2010 and finishes on 02 Jan 2011.&lt;/P&gt;&lt;P&gt;Normally, I would simply use sum(sales) / sum(total &amp;lt;[Week]&amp;gt; sales) to calculate % of weekly sales for each product. But, because it's a calculated dimension, this won't work. I've tried using the calculated dimension's label (called [Calculated Week] ) i.e. sum(total &amp;lt;[Calculated Week]&amp;gt; sales) but the label isn't recognised so this doesn't work. I've also tried pasting in the calculated dimension's expression but this doesn't work either.&lt;/P&gt;&lt;P&gt;Does anyone have a solution?&lt;/P&gt;&lt;P&gt;If necessary, I can post a test app with the object in which may make more sense.&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;APS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 17:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189711#M52486</guid>
      <dc:creator />
      <dc:date>2011-01-27T17:37:27Z</dc:date>
    </item>
    <item>
      <title>AW:Problem with % of column total using calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189712#M52487</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;no suggestions?&lt;/P&gt;&lt;P&gt;I have the same problem. It's a pivot table with, Country, Partner and sum(sales):&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/2438.Pivot.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/2438.Pivot.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sales 2010 is calculated with sum(Sales), Sales Land is calculated with sum(TOTAL &amp;lt;LAND&amp;gt; Sales).&lt;/P&gt;&lt;P&gt;The result is the same because Partner is a calculated Dimension (I want to see only the first 8 Partners by sum(Sales)) .&lt;/P&gt;&lt;P&gt;If I take the Partner dimension without calculation (seeing all Partners in the country) the 2nd SUM calculates the total for the land as suggested.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 11:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189712#M52487</guid>
      <dc:creator />
      <dc:date>2011-02-04T11:36:59Z</dc:date>
    </item>
    <item>
      <title>AW:Problem with % of column total using calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189713#M52488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this is only an idea, put your calculated dimension in a variable!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 11:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189713#M52488</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-02-04T11:40:50Z</dc:date>
    </item>
    <item>
      <title>AW:Problem with % of column total using calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189714#M52489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;too bad, that doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 13:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189714#M52489</guid>
      <dc:creator />
      <dc:date>2011-02-04T13:29:50Z</dc:date>
    </item>
    <item>
      <title>AW:Problem with % of column total using calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189715#M52490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does no one have an idea?&lt;/P&gt;&lt;P&gt;Regards Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 14:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189715#M52490</guid>
      <dc:creator />
      <dc:date>2011-02-07T14:30:30Z</dc:date>
    </item>
    <item>
      <title>AW:Problem with % of column total using calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189716#M52491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you post a test app containing the problem?&lt;/P&gt;&lt;P&gt;I have solved the problem in my app. I created a flag in the load script and then used the flag in a calculated dimension. But if you use the same code in a calculated dimension it doesn't work.&lt;/P&gt;&lt;P&gt;So, in the load script: if (xyz = abc, 1,0) as Flag&lt;/P&gt;&lt;P&gt;Then, in your calculated dimension: if (Flag = 1, then, else) this works&lt;/P&gt;&lt;P&gt;But, if you use this in your CD: if(xyz = abc, then, else) it doesn't work&lt;/P&gt;&lt;P&gt;So, even though you are using the same logic, the flag method works and the other doesn't.&lt;/P&gt;&lt;P&gt;Hopefully this makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 11:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-of-column-total-using-calculated-dimension/m-p/189716#M52491</guid>
      <dc:creator />
      <dc:date>2011-02-08T11:33:15Z</dc:date>
    </item>
  </channel>
</rss>

