<?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 divide all data in pivot table ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-divide-all-data-in-pivot-table/m-p/158846#M33720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, from my last post about topic &lt;A href="https://community.qlik.com/forums/p/29143/112079.aspx#112079" jquery1274418937507="3" target="_blank"&gt;How to divide all data in pivot table by use one value of them?&lt;/A&gt; (&lt;A href="https://community.qlik.com/forums/p/29143/112079.aspx#112079"&gt;http://community.qlik.com/forums/p/29143/112079.aspx#112079&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Now I can divide all values by use set analysis. And I try to use the set analysis to divide data in two dimensions.&lt;/P&gt;&lt;P&gt;I add the Year dimension into the table.&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/-1667_sourceID:1667" /&gt;&lt;/P&gt;&lt;P&gt;Now, the data divide by sum Sale in Austria(All year).&lt;/P&gt;&lt;P&gt;If I want the data divide by sum Sale in Austria(All year) when I see the data only in Country dimension. And the data divide by sum Sale in Austria(specify year) when I see the data in second dimension(Year).&lt;/P&gt;&lt;P&gt;Such as: USA in all year / Austria in all year ,USA in 2003 / Austria in 2003 ,Spain in 2004 / Austria in 2004&lt;/P&gt;&lt;P&gt;So the result of Austria in Sum column should be 1 in every year.&lt;/P&gt;&lt;P&gt;I solve this problem by use if function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;Sum(LineSalesAmount)/if(Country&amp;lt;&amp;gt;null and Year ='2002' ,sum({$&amp;lt;Country={Austria}, Year={2002}&amp;gt;} total LineSalesAmount),&lt;BR /&gt;if(Country&amp;lt;&amp;gt;null and Year ='2003' ,sum({$&amp;lt;Country={Austria}, Year={2003}&amp;gt;} total LineSalesAmount),&lt;BR /&gt;if(Country&amp;lt;&amp;gt;null and Year ='2004' ,sum({$&amp;lt;Country={Austria}, Year={2004}&amp;gt;} total LineSalesAmount),&lt;BR /&gt;if(Country&amp;lt;&amp;gt;null and Year ='2005' ,sum({$&amp;lt;Country={Austria}, Year={2005}&amp;gt;} total LineSalesAmount),&lt;BR /&gt;if(Country&amp;lt;&amp;gt;null and Year ='2006' ,sum({$&amp;lt;Country={Austria}, Year={2006}&amp;gt;} total LineSalesAmount),&lt;BR /&gt;if(Country&amp;lt;&amp;gt;null and Year ='2007' ,sum({$&amp;lt;Country={Austria}, Year={2007}&amp;gt;} total LineSalesAmount),sum({$&amp;lt;Country={Austria}&amp;gt;} total LineSalesAmount)))))))&lt;BR /&gt;&lt;/H4&gt;&lt;P&gt;And its can solve my problem, but because the data is too big. So this method will not good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can I solve the problem by use another function?&lt;/P&gt;&lt;P&gt;I try to find the way to divide data like this, but I still don't know how. Or we can just use if function for this problem?&lt;/P&gt;&lt;P&gt;I would be more than happy if someone could give me a hint. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 11:35:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-20T11:35:39Z</dc:date>
    <item>
      <title>How to divide all data in pivot table ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-divide-all-data-in-pivot-table/m-p/158846#M33720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, from my last post about topic &lt;A href="https://community.qlik.com/forums/p/29143/112079.aspx#112079" jquery1274418937507="3" target="_blank"&gt;How to divide all data in pivot table by use one value of them?&lt;/A&gt; (&lt;A href="https://community.qlik.com/forums/p/29143/112079.aspx#112079"&gt;http://community.qlik.com/forums/p/29143/112079.aspx#112079&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Now I can divide all values by use set analysis. And I try to use the set analysis to divide data in two dimensions.&lt;/P&gt;&lt;P&gt;I add the Year dimension into the table.&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/-1667_sourceID:1667" /&gt;&lt;/P&gt;&lt;P&gt;Now, the data divide by sum Sale in Austria(All year).&lt;/P&gt;&lt;P&gt;If I want the data divide by sum Sale in Austria(All year) when I see the data only in Country dimension. And the data divide by sum Sale in Austria(specify year) when I see the data in second dimension(Year).&lt;/P&gt;&lt;P&gt;Such as: USA in all year / Austria in all year ,USA in 2003 / Austria in 2003 ,Spain in 2004 / Austria in 2004&lt;/P&gt;&lt;P&gt;So the result of Austria in Sum column should be 1 in every year.&lt;/P&gt;&lt;P&gt;I solve this problem by use if function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;Sum(LineSalesAmount)/if(Country&amp;lt;&amp;gt;null and Year ='2002' ,sum({$&amp;lt;Country={Austria}, Year={2002}&amp;gt;} total LineSalesAmount),&lt;BR /&gt;if(Country&amp;lt;&amp;gt;null and Year ='2003' ,sum({$&amp;lt;Country={Austria}, Year={2003}&amp;gt;} total LineSalesAmount),&lt;BR /&gt;if(Country&amp;lt;&amp;gt;null and Year ='2004' ,sum({$&amp;lt;Country={Austria}, Year={2004}&amp;gt;} total LineSalesAmount),&lt;BR /&gt;if(Country&amp;lt;&amp;gt;null and Year ='2005' ,sum({$&amp;lt;Country={Austria}, Year={2005}&amp;gt;} total LineSalesAmount),&lt;BR /&gt;if(Country&amp;lt;&amp;gt;null and Year ='2006' ,sum({$&amp;lt;Country={Austria}, Year={2006}&amp;gt;} total LineSalesAmount),&lt;BR /&gt;if(Country&amp;lt;&amp;gt;null and Year ='2007' ,sum({$&amp;lt;Country={Austria}, Year={2007}&amp;gt;} total LineSalesAmount),sum({$&amp;lt;Country={Austria}&amp;gt;} total LineSalesAmount)))))))&lt;BR /&gt;&lt;/H4&gt;&lt;P&gt;And its can solve my problem, but because the data is too big. So this method will not good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can I solve the problem by use another function?&lt;/P&gt;&lt;P&gt;I try to find the way to divide data like this, but I still don't know how. Or we can just use if function for this problem?&lt;/P&gt;&lt;P&gt;I would be more than happy if someone could give me a hint. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 11:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-divide-all-data-in-pivot-table/m-p/158846#M33720</guid>
      <dc:creator />
      <dc:date>2010-05-20T11:35:39Z</dc:date>
    </item>
    <item>
      <title>How to divide all data in pivot table ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-divide-all-data-in-pivot-table/m-p/158847#M33721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Please provide small QVW with data, and your expected result, so that some one can give you better solution.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 14:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-divide-all-data-in-pivot-table/m-p/158847#M33721</guid>
      <dc:creator />
      <dc:date>2010-05-20T14:42:42Z</dc:date>
    </item>
    <item>
      <title>How to divide all data in pivot table ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-divide-all-data-in-pivot-table/m-p/158848#M33722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I can solve the problem by use this expression :&lt;/P&gt;&lt;H3&gt;sum(LineSalesAmount)/sum({&amp;lt;Country={Austria}&amp;gt;} total&amp;lt;Year&amp;gt; LineSalesAmount)&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 16:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-divide-all-data-in-pivot-table/m-p/158848#M33722</guid>
      <dc:creator />
      <dc:date>2010-06-08T16:25:10Z</dc:date>
    </item>
  </channel>
</rss>

