<?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 datamodel loop ... i'm stuck [^o)] in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/datamodel-loop-i-m-stuck-o/m-p/234067#M716568</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;I'm working on a datamodel ... but I'm really stuck at this moment. Maybe because my database logic and knowledge differs from the way QlikView datamodel works.&lt;/P&gt;&lt;P&gt;See code below of the data as is ... problem with this model is that it turns into a loop ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;AVM_ErrorCode:&lt;BR /&gt;LOAD Department,&lt;BR /&gt; Date,&lt;BR /&gt; ErrorCode,&lt;BR /&gt; ErrorCodeId,&lt;BR /&gt; Description;&lt;BR /&gt;SQL SELECT Department,&lt;BR /&gt; Date,&lt;BR /&gt; ErrorCode,&lt;BR /&gt; ErrorCodeId,&lt;BR /&gt; Description&lt;BR /&gt;FROM Errorcodes;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ErrorCode_SO:&lt;BR /&gt;LOAD&lt;BR /&gt; ErrorCodeId,&lt;BR /&gt; Serviceordernr;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; ErrorCodeId,&lt;BR /&gt; Serviceordernr&lt;BR /&gt;FROM `AVM Site History`;&lt;BR /&gt;&lt;BR /&gt;ErrorCode_Call:&lt;BR /&gt;LOAD&lt;BR /&gt; Callnr,&lt;BR /&gt; Serviceordernr as ErrorCode_Call.Serviceordernr,&lt;BR /&gt; FoutCodeId;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; Serviceordernr ,&lt;BR /&gt; Callnr,&lt;BR /&gt; FoutCodeId&lt;BR /&gt;FROM `AVM Call History`;&lt;BR /&gt;ServiceOrders:&lt;BR /&gt;LOAD&lt;BR /&gt; Serviceordernr,&lt;BR /&gt; .... (lots of extra data)&lt;BR /&gt;SQL SELECT&lt;BR /&gt; Serviceordernr,&lt;BR /&gt; ....&lt;BR /&gt;FROM SerficeOrders;&lt;BR /&gt;Calls:&lt;BR /&gt;LOAD&lt;BR /&gt; Callnr,&lt;BR /&gt; Serviceordernr,&lt;BR /&gt; .... (lots of extra data)&lt;BR /&gt;SQL SELECT&lt;BR /&gt; Callnr,&lt;BR /&gt; Serviceordernr,&lt;BR /&gt; ....&lt;BR /&gt;FROM Calls;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Did try some different things ... like adding errorcode to the ServiceOrder and Calls table ... but this still gives the problem the ErrorCode table is somewhere in between.&lt;/P&gt;&lt;P&gt;The ServiceOrders and Calls can be seen as two seperate items which are seperately used within our reports ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ErrorCodes are added to a ServiceOrder and to a Call ... these can be different since it are different objects.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Call SO Call_errorcode SO_errorcode&lt;/P&gt;&lt;P&gt;CC01 SO01 123 620&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me finding the light??&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;many thx,&lt;/P&gt;&lt;P&gt;Anita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2010 12:06:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-02-09T12:06:11Z</dc:date>
    <item>
      <title>datamodel loop ... i'm stuck [^o)]</title>
      <link>https://community.qlik.com/t5/QlikView/datamodel-loop-i-m-stuck-o/m-p/234067#M716568</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;I'm working on a datamodel ... but I'm really stuck at this moment. Maybe because my database logic and knowledge differs from the way QlikView datamodel works.&lt;/P&gt;&lt;P&gt;See code below of the data as is ... problem with this model is that it turns into a loop ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;AVM_ErrorCode:&lt;BR /&gt;LOAD Department,&lt;BR /&gt; Date,&lt;BR /&gt; ErrorCode,&lt;BR /&gt; ErrorCodeId,&lt;BR /&gt; Description;&lt;BR /&gt;SQL SELECT Department,&lt;BR /&gt; Date,&lt;BR /&gt; ErrorCode,&lt;BR /&gt; ErrorCodeId,&lt;BR /&gt; Description&lt;BR /&gt;FROM Errorcodes;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ErrorCode_SO:&lt;BR /&gt;LOAD&lt;BR /&gt; ErrorCodeId,&lt;BR /&gt; Serviceordernr;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; ErrorCodeId,&lt;BR /&gt; Serviceordernr&lt;BR /&gt;FROM `AVM Site History`;&lt;BR /&gt;&lt;BR /&gt;ErrorCode_Call:&lt;BR /&gt;LOAD&lt;BR /&gt; Callnr,&lt;BR /&gt; Serviceordernr as ErrorCode_Call.Serviceordernr,&lt;BR /&gt; FoutCodeId;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; Serviceordernr ,&lt;BR /&gt; Callnr,&lt;BR /&gt; FoutCodeId&lt;BR /&gt;FROM `AVM Call History`;&lt;BR /&gt;ServiceOrders:&lt;BR /&gt;LOAD&lt;BR /&gt; Serviceordernr,&lt;BR /&gt; .... (lots of extra data)&lt;BR /&gt;SQL SELECT&lt;BR /&gt; Serviceordernr,&lt;BR /&gt; ....&lt;BR /&gt;FROM SerficeOrders;&lt;BR /&gt;Calls:&lt;BR /&gt;LOAD&lt;BR /&gt; Callnr,&lt;BR /&gt; Serviceordernr,&lt;BR /&gt; .... (lots of extra data)&lt;BR /&gt;SQL SELECT&lt;BR /&gt; Callnr,&lt;BR /&gt; Serviceordernr,&lt;BR /&gt; ....&lt;BR /&gt;FROM Calls;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Did try some different things ... like adding errorcode to the ServiceOrder and Calls table ... but this still gives the problem the ErrorCode table is somewhere in between.&lt;/P&gt;&lt;P&gt;The ServiceOrders and Calls can be seen as two seperate items which are seperately used within our reports ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ErrorCodes are added to a ServiceOrder and to a Call ... these can be different since it are different objects.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Call SO Call_errorcode SO_errorcode&lt;/P&gt;&lt;P&gt;CC01 SO01 123 620&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me finding the light??&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;many thx,&lt;/P&gt;&lt;P&gt;Anita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 12:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/datamodel-loop-i-m-stuck-o/m-p/234067#M716568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-09T12:06:11Z</dc:date>
    </item>
    <item>
      <title>datamodel loop ... i'm stuck [^o)]</title>
      <link>https://community.qlik.com/t5/QlikView/datamodel-loop-i-m-stuck-o/m-p/234068#M716569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be more specific of the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a little stuck on how to find a good solution for the following "&lt;B&gt;loop&lt;/B&gt;" between the following tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="gray"&gt;&lt;I&gt;&lt;B&gt;ServiceOrders&lt;/B&gt;&lt;/I&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Serviceordernr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ErrorCode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="gray"&gt;&lt;I&gt;&lt;B&gt;Calls&lt;/B&gt;&lt;/I&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Callnr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Serviceordernr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ErrorCode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="gray"&gt;&lt;I&gt;&lt;B&gt;ErrorCodes&lt;/B&gt;&lt;/I&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ErrorCode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The &lt;B&gt;ErrorCode&lt;/B&gt; mentioned in Calls and in ServiceOrders are different from each other.&lt;/P&gt;&lt;P&gt;Did think of combining the Calls and ServiceOrders but this is not the solution since Calls and ServiceOrders are different objects ... also the ErrorCode is for the ServiceOrder specific and for the Call (with Serviceordernr) specific.&lt;/P&gt;&lt;P&gt;When adding the ErrorCode information to the ServiceOrders and Calls table also the problem is there of how to make a selection on only the ErrorCode over both tables ...&lt;/P&gt;&lt;P&gt;Also did think of making a seperate table which contains the combination of the ErrorCodes but still there is the problem of 2 different ErrorCodes one for Call and one for ServiceOrder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 13:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/datamodel-loop-i-m-stuck-o/m-p/234068#M716569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-09T13:15:47Z</dc:date>
    </item>
    <item>
      <title>datamodel loop ... i'm stuck [^o)]</title>
      <link>https://community.qlik.com/t5/QlikView/datamodel-loop-i-m-stuck-o/m-p/234069#M716570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anita ,&lt;/P&gt;&lt;P&gt;If you dont want to link Errorcodes between two tables , then you can use "Qualify / Unqulaify " functions.&lt;/P&gt;&lt;P&gt;You can examples in HELP to demonstarte the same .&lt;/P&gt;&lt;P&gt;Mentioned below is just brief for you :-&lt;/P&gt;&lt;P&gt;The automatic join between fields with the same name in different tables, can be suspended by qualifying the field name with its table name. After qualification of a field name its name will be given in the form of tablename.fieldname.Qualification is switched off by default. It is switched on by means of the qualify statement. It can also be switched off again by means of the &lt;A href="http://community.qlik.com/forums/Unqualify.htm"&gt;unqualify&lt;/A&gt; statement.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhushan N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 14:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/datamodel-loop-i-m-stuck-o/m-p/234069#M716570</guid>
      <dc:creator />
      <dc:date>2010-02-09T14:13:04Z</dc:date>
    </item>
    <item>
      <title>datamodel loop ... i'm stuck [^o)]</title>
      <link>https://community.qlik.com/t5/QlikView/datamodel-loop-i-m-stuck-o/m-p/234070#M716571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did already think of the qualify / unqualify ...&lt;/P&gt;&lt;P&gt;but I need data from the ErrorCode table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. there is a department which i can select, in this case I need all ServiceOrders and all Calls with an ErrorCode for that department.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only thing I came up with now is temporary create some sort of key and check fields for null values or not &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 14:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/datamodel-loop-i-m-stuck-o/m-p/234070#M716571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-09T14:17:16Z</dc:date>
    </item>
  </channel>
</rss>

