<?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: Creating Proper Data Model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1614701#M456436</link>
    <description>&lt;P&gt;Thanks a lot Arthur! It works greatly, I marked it as solution.&lt;/P&gt;&lt;P&gt;I am not sure of the necessity of KeyLinkCLIENT, KeyLinkOrder and KeyLinkWEB but I will investigate deeper the script.&lt;/P&gt;&lt;P&gt;I would have much more questions regarding the proper data model to aim (like for example I thought we should always aim for a star schema model but here it does not seem the case), but I should save these for another post probably.&lt;/P&gt;&lt;P&gt;Thanks again, have a great day.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2019 10:15:51 GMT</pubDate>
    <dc:creator>Maverick999</dc:creator>
    <dc:date>2019-08-21T10:15:51Z</dc:date>
    <item>
      <title>Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1612551#M456424</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to know the right way to work with this data. I loaded 4 different tables, which all have a client ID field in common. What is the best data model to aim for and what types of data transformation should I do to achieve it?&lt;/P&gt;&lt;P&gt;Also, I am familiar with the concept of Master Calendar but how can I know if I should create a master calendar PER each date field ?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 397px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17019iE02A2C8DA9B93A19/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1612551#M456424</guid>
      <dc:creator>Maverick999</dc:creator>
      <dc:date>2024-11-16T02:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1612568#M456425</link>
      <description>&lt;P&gt;Ideally Always aim for a star schema as much as possible.&lt;/P&gt;&lt;P&gt;regarding the date field creating master calendar for each one depends on your requirement. but if you need to use canonical date concept along with it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 16:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1612568#M456425</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-08-14T16:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1612614#M456426</link>
      <description>&lt;P&gt;Let me update my post:&lt;BR /&gt;I have tried to create a star schema by concatenating by adding the « ID » keys of the different tables&lt;BR /&gt;I get the below schema. I also added a Master Calendar based on the date client created.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 717px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17044i8FBE8CA37A714C0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this schema correct?&lt;BR /&gt;Nevertheless, what I am trying to achieve is create 2 graphs:&lt;BR /&gt;- One where I would have The amount of unique clients who had spent between 1-100€, 100-300€ and +300€. For that I created a new dimension using if function in the table Order and I planned to use this dimension&lt;BR /&gt;- One where I can identify the clients that made an order less than 4 days after receiving a specific canal (email or sms)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 18:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1612614#M456426</guid>
      <dc:creator>Maverick999</dc:creator>
      <dc:date>2019-08-14T18:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1612711#M456427</link>
      <description>&lt;P&gt;Hi Maverick,&lt;/P&gt;&lt;P&gt;After going through your second model, it seems that the&amp;nbsp; second model you shown are not the same in terms of table columns and keys if compared to the first model.&lt;/P&gt;&lt;P&gt;Please provide your qvw so that we can go through the data model for a better solution.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 06:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1612711#M456427</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-08-15T06:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1613008#M456428</link>
      <description>&lt;P&gt;Hello JK,&lt;/P&gt;&lt;P&gt;Please find attached the qvw and the data.&lt;/P&gt;&lt;P&gt;I put it back as the initial state, I would like to know what data modelling to do from this kind of data. Four tables linked by a key.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 17:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1613008#M456428</guid>
      <dc:creator>Maverick999</dc:creator>
      <dc:date>2019-08-15T17:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1613067#M456429</link>
      <description>&lt;P&gt;Hi Maverick,&lt;/P&gt;&lt;P&gt;Attached is the qvw with my point of view for scripting this data model.&lt;/P&gt;&lt;P&gt;Your approach of creating a master calendar is good. However, you have to create linkage from the master calendar date towards all other table date.&lt;/P&gt;&lt;P&gt;I did this by creating a link table to link all 3 facts using client_id and date as key, as these are the common fields that can be found in the 3 fact tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Giving the 3 dates a same name as the MasterCalendar's date (DateCal) will associate the link table with the MasterCalendar now.&lt;/P&gt;&lt;P&gt;With this, you may create selection panels for (Year,Month,Date) and the dates for the other 3 fact tables will also be reflected as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps in your development.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 00:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1613067#M456429</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-08-16T00:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1613364#M456430</link>
      <description>&lt;P&gt;Hello Arthur, thanks a lot for explaining me your approach and modifying the data model.&lt;/P&gt;&lt;P&gt;It looks like it makes great sense, however when I am trying to create a simple graph to show how many clients there were each year. I use in the expression: = count( DISTINCT id_client) and as a Dimension "Year".&lt;/P&gt;&lt;P&gt;But in the graph, the Year only starts at 2017 when I see in my data there there already clients (id_client) back in 2015 (client tab in excel).&lt;/P&gt;&lt;P&gt;So I am thinking I might be missing something related to the MasterCalendar isn't it?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 15:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1613364#M456430</guid>
      <dc:creator>Maverick999</dc:creator>
      <dc:date>2019-08-16T15:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1613608#M456431</link>
      <description>&lt;P&gt;Hi Maverick,&lt;/P&gt;&lt;P&gt;Sorry that I didn't notice that your client table date is a timestamp based date.&lt;/P&gt;&lt;P&gt;So the formatting didn't match with the one in Link table, which causes all calendar fields that has association with client table not able to be linked.&lt;/P&gt;&lt;P&gt;Refer updated qvw with the updated script.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 00:52:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1613608#M456431</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-08-19T00:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1614026#M456432</link>
      <description>&lt;P&gt;Thanks a ton Arthur!&lt;/P&gt;&lt;P&gt;I am struggling on how to use it properly since I am bit confused about which ID to use (KeyLink, Client_ID etc.).&lt;/P&gt;&lt;P&gt;For example, if I want to make a graph to show which are the campaigns that led to the greatest number of clients making an order less than 4 days after being exposed to the campaign.&lt;/P&gt;&lt;P&gt;The date when a client has been exposed to a campaign being the column "date" in CRM table and the date when a client made an order being the column "date_cmd" in the "achat" table (in the excel).&lt;/P&gt;&lt;P&gt;Thanks a lot for your help in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 19:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1614026#M456432</guid>
      <dc:creator>Maverick999</dc:creator>
      <dc:date>2019-08-19T19:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1614067#M456433</link>
      <description>&lt;P&gt;Glad that it helps.&lt;/P&gt;&lt;P&gt;Do mark the solution provided as correct for others reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 23:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1614067#M456433</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-08-19T23:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1614112#M456434</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;To confirm this data model is correct, I need to understand how to use it then.&lt;/P&gt;&lt;P&gt;I am not sure how to use it properly since I am bit confused about which ID to use (KeyLink, Client_ID etc.) depending on the requirement.&lt;/P&gt;&lt;P&gt;For example, if I want to make a graph to show which are the campaigns that led to the greatest number of clients making an order less than 4 days after being exposed to the campaign.&lt;/P&gt;&lt;P&gt;The date when a client has been exposed to a campaign being the column "date" in CRM table and the date when a client made an order being the column "date_cmd" in the "achat" table (in the excel).&lt;/P&gt;&lt;P&gt;Thanks a lot for your help in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 05:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1614112#M456434</guid>
      <dc:creator>Maverick999</dc:creator>
      <dc:date>2019-08-20T05:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1614583#M456435</link>
      <description>&lt;P&gt;There you go:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CP.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/17405iA544E0DE481CC47C/image-size/large?v=v2&amp;amp;px=999" role="button" title="CP.PNG" alt="CP.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do take a look on how the logic is defined in the script.&lt;/P&gt;&lt;P&gt;Once the flag is created, you can sum it up and get the counts of successful campaigns.&lt;/P&gt;&lt;P&gt;This screenshot is took at the last tab called "Sheet".&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Arthur Fong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 06:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1614583#M456435</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-08-21T06:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Proper Data Model</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1614701#M456436</link>
      <description>&lt;P&gt;Thanks a lot Arthur! It works greatly, I marked it as solution.&lt;/P&gt;&lt;P&gt;I am not sure of the necessity of KeyLinkCLIENT, KeyLinkOrder and KeyLinkWEB but I will investigate deeper the script.&lt;/P&gt;&lt;P&gt;I would have much more questions regarding the proper data model to aim (like for example I thought we should always aim for a star schema model but here it does not seem the case), but I should save these for another post probably.&lt;/P&gt;&lt;P&gt;Thanks again, have a great day.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 10:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Proper-Data-Model/m-p/1614701#M456436</guid>
      <dc:creator>Maverick999</dc:creator>
      <dc:date>2019-08-21T10:15:51Z</dc:date>
    </item>
  </channel>
</rss>

