<?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 Data modeling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-modeling/m-p/1120930#M369465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to show differences between 2 tables.&lt;/P&gt;&lt;P&gt;First table holds the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shop total articles scanned&lt;/P&gt;&lt;P&gt;Shop_RetourNr, shopnr articlenr and number_scanned_shop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Articles are shipped to distribution center (DC)&lt;/P&gt;&lt;P&gt;Shop total articles scanned&lt;/P&gt;&lt;P&gt;DC_RetourNr, shopnr articlenr and number_scanned_DC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to make the row unique in DC table there is an extra field called receipts number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RetourNr &amp;amp; '.' &amp;amp; ShopNr &amp;amp; '.' &amp;amp; ArticleNr as key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all fields present in both tables. In shop table all the rows are unique. For DC keys there can be duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is check if there are "total scanned differences" using RetourNr as aggregation level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapRetourNr_shop:&lt;/P&gt;&lt;P&gt;mapping load Shop_RetourNr, sum(number_scanned_shop) as Shop_retournr_total_scanned &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident incidenteel_temp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by Shop_RetourNr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For DC totals scanned I do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I make a Straight table as dimension the key showing Shop_retournr_total_scanned versus DC_retournr_total_scanned I got a lot of differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I export the data to Excel some magic is going on the data fits for 99%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me a great weekend!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2016 16:00:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-08T16:00:45Z</dc:date>
    <item>
      <title>Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modeling/m-p/1120930#M369465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to show differences between 2 tables.&lt;/P&gt;&lt;P&gt;First table holds the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shop total articles scanned&lt;/P&gt;&lt;P&gt;Shop_RetourNr, shopnr articlenr and number_scanned_shop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Articles are shipped to distribution center (DC)&lt;/P&gt;&lt;P&gt;Shop total articles scanned&lt;/P&gt;&lt;P&gt;DC_RetourNr, shopnr articlenr and number_scanned_DC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to make the row unique in DC table there is an extra field called receipts number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RetourNr &amp;amp; '.' &amp;amp; ShopNr &amp;amp; '.' &amp;amp; ArticleNr as key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all fields present in both tables. In shop table all the rows are unique. For DC keys there can be duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is check if there are "total scanned differences" using RetourNr as aggregation level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mapRetourNr_shop:&lt;/P&gt;&lt;P&gt;mapping load Shop_RetourNr, sum(number_scanned_shop) as Shop_retournr_total_scanned &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident incidenteel_temp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by Shop_RetourNr;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For DC totals scanned I do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I make a Straight table as dimension the key showing Shop_retournr_total_scanned versus DC_retournr_total_scanned I got a lot of differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I export the data to Excel some magic is going on the data fits for 99%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me a great weekend!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 16:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modeling/m-p/1120930#M369465</guid>
      <dc:creator />
      <dc:date>2016-07-08T16:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modeling/m-p/1120931#M369466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am not sure if I understand the requirement completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking to populate the scans which are done only at one place. (and not at the other)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shop:&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Shop_RetourNr,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from shop_source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DC:&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DC_RetourNr,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from DC_Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Shop_RetourNr as RetourNr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;resident Shop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where not exists(DC_RetourNr, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Shop_RetourNr)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(Final)&lt;/P&gt;&lt;P&gt;LOAD DC_RetourNr as RetourNr&lt;/P&gt;&lt;P&gt;resident DC&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where not exists(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Shop_RetourNr, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DC_RetourNr&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;drop tables DC, Shop;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I just have one field in the Final table, you can all of them needed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 17:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modeling/m-p/1120931#M369466</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2016-07-08T17:07:47Z</dc:date>
    </item>
  </channel>
</rss>

