<?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: How to load a mapping table from SQL into QlikView? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333354#M411658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi leon!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should have a third field in qvw_files table, it have to be the id of the qvd that generate and, with this field you can join with the qvw_files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan Patricio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jul 2017 18:31:56 GMT</pubDate>
    <dc:creator>juan_patrick</dc:creator>
    <dc:date>2017-07-05T18:31:56Z</dc:date>
    <item>
      <title>How to load a mapping table from SQL into QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333353#M411657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have these three tables in SQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVW_Files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QVW_FileID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QVW_FileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVD_Files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QVD_FileID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QVD_FileName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GeneratedByQVW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is then a mapping table that associates the two:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping_QVW_QVD:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QVW_FileID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QVD_FileID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am trying to create a QlikView app that shows which QVD is generated by which QVW and also show when a QVD is being read by a QVW. So I've just labeled them "Generated" and "Consumed" respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm having issues displaying them both because their column names are alike. Therefore, it creates a synthetic key and only allows me to show one relationship, and it happens to be the "Generated" relationship. If I create list boxes and select a particular QVD, the QVW list box would only show me the QVW that generates that QVD, and now the QVWs that consume that QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get around this, or am I out of luck?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be more specific, I'm looking to be able to have two list boxes. If I select a particular QVD, it would show me in one list box, the QVW that generates it, and in another list box, the QVWs that reference it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the QVD and "Generated" list box, it would be a 1 to 1 relationship.&lt;/P&gt;&lt;P&gt;For the QVD and the "Consumed" list box, it would be a 1 to many relationship.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how I'm bringing them in QlikView:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1499279157673635 jive_text_macro" jivemacro_uid="_1499279157673635"&gt;
&lt;P&gt;QVW_Files:&lt;/P&gt;
&lt;P&gt;SQL SELECT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; "QVW_FileID"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; , "QVW_FileName"&lt;/P&gt;
&lt;P&gt;FROM "QlikFiles".dbo."QVW_Files";&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14992791664406704 jive_text_macro" jivemacro_uid="_14992791664406704" modifiedtitle="true"&gt;
&lt;P&gt;QVD_Files:&lt;/P&gt;
&lt;P&gt;SQL SELECT&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "QVD_FileID"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; , "QVD_FileName"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; , "GeneratedByQVW"&lt;/P&gt;
&lt;P&gt;FROM "QlikFiles".dbo."QVD_Files";&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333353#M411657</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2017-07-05T18:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a mapping table from SQL into QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333354#M411658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi leon!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should have a third field in qvw_files table, it have to be the id of the qvd that generate and, with this field you can join with the qvw_files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan Patricio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333354#M411658</guid>
      <dc:creator>juan_patrick</dc:creator>
      <dc:date>2017-07-05T18:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a mapping table from SQL into QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333355#M411659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, but isn't that what I'm already doing with the QVDs table? I don't have a problem getting the "Generated" list box to work. My problem is currently the "Consumed" list box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333355#M411659</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2017-07-05T18:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a mapping table from SQL into QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333356#M411660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that your problem is the join between the tables to show data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option to see is the hierarchy function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4823"&gt;Hierarchy in QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to show which &lt;STRONG&gt;QVD&lt;/STRONG&gt; is reading by wich &lt;STRONG&gt;QVW&lt;/STRONG&gt;, you have to join and I dont see the field to join.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333356#M411660</guid>
      <dc:creator>juan_patrick</dc:creator>
      <dc:date>2017-07-05T18:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a mapping table from SQL into QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333357#M411661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is causing your issue but in your script you are giving both tables the same name&amp;nbsp; QVW_Files:&amp;nbsp; That will give you a problem.&lt;/P&gt;&lt;P&gt;Set the 2nd one to be QVD_Files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333357#M411661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-05T18:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a mapping table from SQL into QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333358#M411662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that was a typo. It's actually named: QVD_Files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 19:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333358#M411662</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2017-07-05T19:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a mapping table from SQL into QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333359#M411663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought that might be the case. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;But looking at your script, none of the fields are names the same so how are you getting a synthetic join?&lt;/P&gt;&lt;P&gt;Can you provide a picture of your data model?&lt;/P&gt;&lt;P&gt;And the script that creates your tables and your mapping table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 19:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-a-mapping-table-from-SQL-into-QlikView/m-p/1333359#M411663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-05T19:58:00Z</dc:date>
    </item>
  </channel>
</rss>

