<?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: Differing totals when adding a dimension to a straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567253#M743061</link>
    <description>&lt;P&gt;Hi can you post some screenshots of that and what outcome you're expecting?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2019 22:11:40 GMT</pubDate>
    <dc:creator>CatherineB</dc:creator>
    <dc:date>2019-04-09T22:11:40Z</dc:date>
    <item>
      <title>Differing totals when adding a dimension to a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567233#M743060</link>
      <description>&lt;P&gt;I am having some duplication when I add some dimensions to a straight table that I created.&amp;nbsp; The sum of the dollars is different when I add a dimension which is a part of our product hierarchy.&amp;nbsp; Is there a way to fix this duplication in the script?The totals are not matching when you export to excel and sum the rows.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567233#M743060</guid>
      <dc:creator>jmtatum2000</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Differing totals when adding a dimension to a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567253#M743061</link>
      <description>&lt;P&gt;Hi can you post some screenshots of that and what outcome you're expecting?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 22:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567253#M743061</guid>
      <dc:creator>CatherineB</dc:creator>
      <dc:date>2019-04-09T22:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Differing totals when adding a dimension to a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567657#M743062</link>
      <description>&lt;P&gt;The numbers that I circled below should match.&amp;nbsp; I used the sum of rows for both to show the differences.&amp;nbsp; The 2018 numbers match exactly and the units for both 2019 and 2018 match.&amp;nbsp; All I did was swap a dimension and the 2019 numbers come out differently in the sum of total rows.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlikview_LI.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9878i4F4A753E085A94EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlikview_LI.jpg" alt="Qlikview_LI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 13:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567657#M743062</guid>
      <dc:creator>jmtatum2000</dc:creator>
      <dc:date>2019-04-10T13:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Differing totals when adding a dimension to a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567761#M743063</link>
      <description>Make sure that you have not excluded null values for the dimension in the object properties.&lt;BR /&gt;&lt;BR /&gt;Which value do you get if you remove all dimensions?&lt;BR /&gt;&lt;BR /&gt;An common problem with the sum of rows is that the total is not the global total if you have transactions that are linked to more than one dimension field value.&lt;BR /&gt;&lt;BR /&gt;Consider this:&lt;BR /&gt;Load * inline [&lt;BR /&gt;Fruit, Color&lt;BR /&gt;Apple, Red&lt;BR /&gt;Apple, Green&lt;BR /&gt;Apple, Yellow&lt;BR /&gt;Banana, Yellow&lt;BR /&gt;Strawberry, Red];&lt;BR /&gt;&lt;BR /&gt;Load * inline [&lt;BR /&gt;Fruit, Quantity&lt;BR /&gt;Apple, 100&lt;BR /&gt;Strawberry, 200&lt;BR /&gt;Banana, 300];&lt;BR /&gt;&lt;BR /&gt;If you have sum of rows you will get two different total values depending on your chart dimensions.&lt;BR /&gt;Fruit:&lt;BR /&gt;Apple=100&lt;BR /&gt;Strawberry=200&lt;BR /&gt;Banana=300&lt;BR /&gt;SUM OF ROWS=600&lt;BR /&gt;REGULAR SUM=600&lt;BR /&gt;&lt;BR /&gt;Color:&lt;BR /&gt;Red=300&lt;BR /&gt;Green=100&lt;BR /&gt;Yellow=400&lt;BR /&gt;SUM OF ROWS=800&lt;BR /&gt;REGULAR SUM=600&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Apr 2019 15:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567761#M743063</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-04-10T15:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Differing totals when adding a dimension to a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567814#M743064</link>
      <description>&lt;P&gt;If I remove all the dimensions the 25,395,621 is the total number.&amp;nbsp; That is the correct&amp;nbsp;number and the raw data adds up to that number.&amp;nbsp; Is there a way to prevent the duplication?&amp;nbsp; The data rolls up by UPC and then the hierarchy matches with the UPC.&amp;nbsp; In some cases there&amp;nbsp;is the same UPC with multiple descriptions associated with the same UPC.&amp;nbsp; Is this what could be causing the issue?&amp;nbsp; Is there a way to just load the first matching description to a UPC?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 17:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567814#M743064</guid>
      <dc:creator>jmtatum2000</dc:creator>
      <dc:date>2019-04-10T17:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Differing totals when adding a dimension to a straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567843#M743065</link>
      <description>&lt;P&gt;Let me explain two approaches based on my simple fruit/color example.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ApplyMap-method.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Create a map table for the UPC-dimension table and use applymap tp get the first value into your transaction table. (I often use this as an alternative to join when I'm not certain about uniqueness of my data)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MapColors:
&lt;STRONG&gt;Mapping&lt;/STRONG&gt; Load * inline [
Fruit, Color
Apple, Red
Apple, Green
Apple, Yellow
Banana, Yellow
Strawberry, Red]
;

Transactions:
Load 
	Fruit, 
	Quantity, 
	&lt;STRONG&gt;ApplyMap('MapColors', Fruit) as Color&lt;/STRONG&gt; 
inline [
Fruit, Quantity
Apple, 100
Strawberry, 200
Banana, 300]
;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First value-method&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you want to keep your UPC data as an dimension table you can choose to only keep the first instance of a dimension value by using firstValue()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Colors:
Load &lt;BR /&gt;   Fruit, &lt;BR /&gt;   &lt;STRONG&gt;FirstValue(Color) as Color&lt;/STRONG&gt; &lt;BR /&gt;inline [
Fruit, Color
Apple, Red
Apple, Green
Apple, Yellow
Banana, Yellow
Strawberry, Red]
&lt;STRONG&gt;group by Fruit&lt;/STRONG&gt;;

Transactions:
Load * inline [
Fruit, Quantity
Apple, 100
Strawberry, 200
Banana, 300];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 19:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Differing-totals-when-adding-a-dimension-to-a-straight-table/m-p/1567843#M743065</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-04-10T19:22:40Z</dc:date>
    </item>
  </channel>
</rss>

