<?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 Questions About Data Model (Regarding Unit Price and Stock History) in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Questions-About-Data-Model-Regarding-Unit-Price-and-Stock/m-p/2064137#M12215</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've started working with Qlik Sense SaaS a few months back, mostly designing apps. We hired a company that did most of the job concerning data ETL and modeling, but I'm starting to study more about the subject. Maybe someone could clarify some doubts I have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one regards whether the unit price should be stored as a dimension in the product dimension table or in the fact table. By unit price I mean the "default price", not the value the product was actually sold and is tied to a purchase ticket. For instance, I have a product ABC that was registered in our system for $100, but it was actually sold for $80 because it was on sale in a certain day. Considering we calculate the markdown of a product, shouldn't it be placed in the product dimension table so we could compare it?&lt;/P&gt;
&lt;P&gt;Beyond that, if we changed the "default price" for that product, how could I keep a record of the different prices ever set, linked to the date it was changed? I've read some stuff about "slowing changing dimensions", would that be the best practice?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My second questioning is about the history of the stock count. Currently we "print" the counting by the end of each month, that means we don't have a daily update on the amount of a certain product (we use our ERP for that). How could I fix this? Is it the same case for the product price? Or in this case it's a fact table considering it changes on a daily basis? If it's a fact table, will it be in the same fact table as the transaction history (sales, etc.)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If anyone could guide me through, I'd be very thankful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pedro.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 10:13:05 GMT</pubDate>
    <dc:creator>pedrohenriqueperna</dc:creator>
    <dc:date>2023-04-25T10:13:05Z</dc:date>
    <item>
      <title>Questions About Data Model (Regarding Unit Price and Stock History)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Questions-About-Data-Model-Regarding-Unit-Price-and-Stock/m-p/2064137#M12215</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've started working with Qlik Sense SaaS a few months back, mostly designing apps. We hired a company that did most of the job concerning data ETL and modeling, but I'm starting to study more about the subject. Maybe someone could clarify some doubts I have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one regards whether the unit price should be stored as a dimension in the product dimension table or in the fact table. By unit price I mean the "default price", not the value the product was actually sold and is tied to a purchase ticket. For instance, I have a product ABC that was registered in our system for $100, but it was actually sold for $80 because it was on sale in a certain day. Considering we calculate the markdown of a product, shouldn't it be placed in the product dimension table so we could compare it?&lt;/P&gt;
&lt;P&gt;Beyond that, if we changed the "default price" for that product, how could I keep a record of the different prices ever set, linked to the date it was changed? I've read some stuff about "slowing changing dimensions", would that be the best practice?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My second questioning is about the history of the stock count. Currently we "print" the counting by the end of each month, that means we don't have a daily update on the amount of a certain product (we use our ERP for that). How could I fix this? Is it the same case for the product price? Or in this case it's a fact table considering it changes on a daily basis? If it's a fact table, will it be in the same fact table as the transaction history (sales, etc.)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If anyone could guide me through, I'd be very thankful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pedro.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 10:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Questions-About-Data-Model-Regarding-Unit-Price-and-Stock/m-p/2064137#M12215</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2023-04-25T10:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Questions About Data Model (Regarding Unit Price and Stock History)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Questions-About-Data-Model-Regarding-Unit-Price-and-Stock/m-p/2064577#M12217</link>
      <description>&lt;P&gt;I would suggest to keep the mentioned parts in separate ETL chains and applications - of course with some overlapping. This means mainly:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;a sales-analysis - which also includes the default unit price as measure-field within the facts and an associated stock table on a daily level (with just a few dimensions)&lt;/LI&gt;
&lt;LI&gt;a price-analysis - with all price-changes over the time + all further price-relevant information like discounts for amounts/channels/customer, taxes, cost-parts and so on&lt;/LI&gt;
&lt;LI&gt;stock-analysis - without any prints (unless the opening stock) else loading all movements of the stock (purchase, sales, cancellation, defects, ...)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Each data-model has enough complexity to use a specialized application-chain for it - and only for a few certain views it's sensible to share some extracted information between them.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 06:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Questions-About-Data-Model-Regarding-Unit-Price-and-Stock/m-p/2064577#M12217</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-04-26T06:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Questions About Data Model (Regarding Unit Price and Stock History)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Questions-About-Data-Model-Regarding-Unit-Price-and-Stock/m-p/2066755#M12240</link>
      <description>&lt;P&gt;Hi, Marcus!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the delay.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed it makes sense to keep them separated. I will sure follow that. Thank you for your suggestion!&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 13:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Questions-About-Data-Model-Regarding-Unit-Price-and-Stock/m-p/2066755#M12240</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2023-05-02T13:28:02Z</dc:date>
    </item>
  </channel>
</rss>

