<?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 Comparing facts in a table with multiple dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-facts-in-a-table-with-multiple-dimensions/m-p/442385#M485595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will appreciate any ideas. I have 25 dimensions and 5 facts. One of the dimansions is Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can imagine there are huge combinations in 25 dimansions and user can define any dimensions to be shown in a report, that means that QV must automatically aggregate data in the dimensions. The problem is that I need to compare in pivot table fact values between two dates, for example this monday and previous monday, and this pivot table must contain a date column as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I can see it I need to shift dates and load data in the way like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filed1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filed2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date as 'current date',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date-7 as 'previous date'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(val) as sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from table1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;group by field1, filed2, etc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (tmp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filed1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filed2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date as 'previous date',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum as 'prev sum'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Id is an unique combination of dimensons. It works fine, but only if you can be sure that the combination at the current day will be meet at the previous date. In my case, as soon as i have lots of combinations of the dimensions, join doesn't work properly here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Apr 2013 19:12:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-10T19:12:22Z</dc:date>
    <item>
      <title>Comparing facts in a table with multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-facts-in-a-table-with-multiple-dimensions/m-p/442385#M485595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will appreciate any ideas. I have 25 dimensions and 5 facts. One of the dimansions is Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can imagine there are huge combinations in 25 dimansions and user can define any dimensions to be shown in a report, that means that QV must automatically aggregate data in the dimensions. The problem is that I need to compare in pivot table fact values between two dates, for example this monday and previous monday, and this pivot table must contain a date column as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I can see it I need to shift dates and load data in the way like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filed1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filed2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date as 'current date',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date-7 as 'previous date'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(val) as sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from table1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;group by field1, filed2, etc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (tmp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filed1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filed2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date as 'previous date',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum as 'prev sum'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Id is an unique combination of dimensons. It works fine, but only if you can be sure that the combination at the current day will be meet at the previous date. In my case, as soon as i have lots of combinations of the dimensions, join doesn't work properly here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 19:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-facts-in-a-table-with-multiple-dimensions/m-p/442385#M485595</guid>
      <dc:creator />
      <dc:date>2013-04-10T19:12:22Z</dc:date>
    </item>
  </channel>
</rss>

