<?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: Data Model Logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038686#M934286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;you can use a link table to avoid synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The model should look something like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Model.PNG" class="jive-image image-1" height="374" src="https://community.qlik.com/legacyfs/online/116192_Model.PNG" width="427" /&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need help building this up.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Kindest regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Feb 2016 19:58:42 GMT</pubDate>
    <dc:creator>santiago_respane</dc:creator>
    <dc:date>2016-02-26T19:58:42Z</dc:date>
    <item>
      <title>Data Model Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038684#M934284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a QlikView application where I analyse Match information from a current eSports competition.&amp;nbsp; I am struggling to determine the logic to connect the three sources of data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Table 1&lt;/SPAN&gt; (shows all the available heroes in the game):&lt;/P&gt;&lt;P&gt;Hero - there are 117 different heroes&lt;/P&gt;&lt;P&gt;Ability - strength/agility/intelligence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Table 2&lt;/SPAN&gt; (shows the picks and bans that were made to start the game):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;MatchID&lt;/SPAN&gt; - unique for that whole match.&amp;nbsp; Each match will have 20 fields&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;Phase&lt;/SPAN&gt; - 1 to 20&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;Team&lt;/SPAN&gt; - Either Radient or Dire&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;Pick/Ban&lt;/SPAN&gt; - Either Pick or Ban&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;Hero&lt;/SPAN&gt; - chosen Hero.&amp;nbsp; Each hero can only be picked once.&amp;nbsp; &lt;STRONG&gt;Matches a hero from Table 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Table 3&lt;/SPAN&gt; (shows the detailed results from the game):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #ff00ff;"&gt;MatchID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; - &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;Matches the MatchID in table 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff00ff;"&gt;Team&lt;/SPAN&gt; - &lt;STRONG&gt;Matches the Team in table 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff00ff;"&gt;Hero&lt;/SPAN&gt; - &lt;STRONG&gt;Matches one of the picked heroes in table 2 &lt;SPAN style="color: #ff0000;"&gt;but also, of course, a hero from table 1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;Result&lt;/SPAN&gt; - Either Win or Lose&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;Duration&lt;/SPAN&gt; - time&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #ff00ff;"&gt;Player&lt;/SPAN&gt; - the person playing that character&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #ff00ff;"&gt;ProTeam&lt;/SPAN&gt; - who the person plays for&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 10pt; line-height: 1.5em;"&gt;Kills&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;Deaths&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;Assists&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;**there are other fields but they do not interfere with the model**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just not sure how to create a model my data so that I can keep all the fields but not create loops and synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone provide me with some guidance?&amp;nbsp; Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 14:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038684#M934284</guid>
      <dc:creator>paul_vans267</dc:creator>
      <dc:date>2016-02-26T14:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038685#M934285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't link Table3.Hero with Table1.Hero. This may solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 19:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038685#M934285</guid>
      <dc:creator>Marcio_Campestrini</dc:creator>
      <dc:date>2016-02-26T19:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038686#M934286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;you can use a link table to avoid synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The model should look something like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Model.PNG" class="jive-image image-1" height="374" src="https://community.qlik.com/legacyfs/online/116192_Model.PNG" width="427" /&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need help building this up.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Kindest regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 19:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038686#M934286</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-02-26T19:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038687#M934287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it were my data, I'd probably start with what &lt;A href="https://community.qlik.com/qlik-users/148957"&gt;marcio.campestrini&lt;/A&gt; suggests. The presence of a single Hero on table 3 for a team and match indicates that that Hero has a special role, and that role should be identified in some way. Are they the MVP? Call it "MVP Hero" and your loop goes away... as does your ability to see the Ability for this Hero, and any other information from table 1. But you can always clone an "MVP Hero" table if it's critical. As for the synthetic key that remains between tables 2 and 3, I don't see it as a problem. If you want to remove it, though, you could create a composite key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Feb 2016 00:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038687#M934287</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-02-27T00:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038688#M934288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a much more radical possibility, you could merge all three tables. We could think of the match itself as being just a final phase shared by both teams. So merge it with table 2 as phase 21. And if there are only a few fields on table 1, no real reason to keep it separate. Denormalize away. Apologies for any bugs in the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Start with just all the data you care about from table 2&lt;BR /&gt;[Match]:&lt;BR /&gt;LOAD &lt;BR /&gt; MatchID&lt;BR /&gt;,Team&lt;BR /&gt;,Phase&lt;BR /&gt;,Pick/Ban&lt;BR /&gt;,Hero&lt;BR /&gt;,etc.&lt;BR /&gt;FROM Table2.qvd (QVD)&lt;BR /&gt;;&lt;BR /&gt;// Merge information from table 3 by Match ID and Team.&lt;BR /&gt;// The idea is that if we pick, say, a Result of Win,&lt;BR /&gt;// we may still want to see, say, what our picks were &lt;BR /&gt;// that may have resulted in that win. But you might &lt;BR /&gt;// not want this step. See what behavior you prefer.&lt;BR /&gt;LEFT JOIN ([Match])&lt;BR /&gt;LOAD &lt;BR /&gt; MatchID&lt;BR /&gt;,Team&lt;BR /&gt;// skip Hero&lt;BR /&gt;,Result&lt;BR /&gt;,etc.&lt;BR /&gt;FROM Table3.qvd(QVD)&lt;BR /&gt;;&lt;BR /&gt;// Concatenate table 3 as well so that we have&lt;BR /&gt;// the table 3 hero associated with phase 21.&lt;BR /&gt;// Or so that we have table 3 data at all if &lt;BR /&gt;// you decide not to join above.&lt;BR /&gt;CONCATENATE ([Match])&lt;BR /&gt;LOAD&lt;BR /&gt; MatchID&lt;BR /&gt;,Team&lt;BR /&gt;,Phase // add this to your QVD, dual('Match',21) as Phase&lt;BR /&gt;,Hero&lt;BR /&gt;,Result&lt;BR /&gt;,etc.&lt;BR /&gt;FROM Table3.qvd (QVD)&lt;BR /&gt;;&lt;BR /&gt;// Join the hero data from table 1&lt;BR /&gt;// because hey, why not?&lt;BR /&gt;LEFT JOIN ([Match])&lt;BR /&gt;LOAD &lt;BR /&gt; Hero&lt;BR /&gt;,Ability&lt;BR /&gt;,etc.&lt;BR /&gt;FROM Table1.qvd (QVD)&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Feb 2016 00:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038688#M934288</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-02-27T00:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038689#M934289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestions.&amp;nbsp; Managed to get it working using&amp;nbsp; a combination of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 15:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Logic/m-p/1038689#M934289</guid>
      <dc:creator>paul_vans267</dc:creator>
      <dc:date>2016-02-29T15:17:55Z</dc:date>
    </item>
  </channel>
</rss>

