<?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: Scenario: Getting error when combining QVDs using combination of left join and concatenate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scenario-Getting-error-when-combining-QVDs-using-combination-of/m-p/646320#M474128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd expect an error about CENTRE_NO not being found when creating Payer_Sig since you commented it out in the load for Payer. Other than that make sure to use the exact case-sensitive field names. Qlikview is case-sensitive about field names. Perhaps you made a typo somewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2014 08:27:54 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-10-02T08:27:54Z</dc:date>
    <item>
      <title>Scenario: Getting error when combining QVDs using combination of left join and concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Scenario-Getting-error-when-combining-QVDs-using-combination-of/m-p/646319#M474127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QVD and Tables:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have all the QVDs for associated tables that I wanted to use in my application.&lt;/P&gt;&lt;P&gt;I have one fact table (Trans).&lt;/P&gt;&lt;P&gt;I have two additional tables:&lt;/P&gt;&lt;P&gt;a) Sig&lt;/P&gt;&lt;P&gt;b) Payer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The SQl query is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;COUNT(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;),TO_CHAR(TO_DATE(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt;CREATE_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: red; background: white;"&gt;'MON-YYYY'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt; SIG SA &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: olive; background: white;"&gt;PAYER&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt; PT&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;TRUNC(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt;SA&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt;CREATE_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;BETWEEN&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: red; background: white;"&gt;'01-jan-2014'&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: red; background: white;"&gt;'31-mar-2014'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt; SA&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt;PAYER_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt;PT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt;PAYER_NO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;GROUP&lt;/SPAN&gt; &lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;BY&lt;/SPAN&gt; &lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;TO_CHAR(TO_DATE(&lt;/SPAN&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt;SA&lt;/SPAN&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;.&lt;/SPAN&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: Courier; color: black; background: white;"&gt;CREATE_DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;),&lt;/SPAN&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: Courier; color: red; background: white;"&gt;'MON-YYYY'&lt;/SPAN&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8pt;"&gt;&lt;SPAN lang="EN-IN" style="font-size: 10.0pt; font-family: Courier; color: blue; background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;What is required?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10.0pt; background: white; font-family: Courier;"&gt;I have to create a bar chart which would be based on two tables SIG and Payer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I have done so far:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8pt;"&gt;&lt;SPAN style="color: #000000; font-size: 10.0pt; background: white; font-family: Courier;"&gt;Loaded QVD &lt;STRONG&gt;"&lt;/STRONG&gt;Sig". Doing left join with QVD "Payer". Creating a new table "SIG_Payer" which would be a combination of QVDs(SIG and Payer). And then concatenating it with fact table "Trans". &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8pt;"&gt;&lt;SPAN style="color: #000000; font-size: 10.0pt; background: white; font-family: Courier;"&gt;The example code is mentioned below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8pt;"&gt;&lt;SPAN style="color: #000000; font-size: 10.0pt; background: white; font-family: Courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Sig:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAYER_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATE_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(CREATE_DATE) as Sig_Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year (CREATE_DATE) as Sig_Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 's' as FLAG&lt;/P&gt;&lt;P&gt;From ../(QVD);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Sig)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Payer:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(CENTRE_NO=1,'A',if(CENTRE_NO=2,'B'))&amp;nbsp; as TaxCentreNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAYER_NO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //CENTRE_NO&lt;/P&gt;&lt;P&gt;From: //&amp;nbsp; (QVD);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate (Trans)&lt;/STRONG&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Payer_Sig:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD PAYER_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATE_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(CREATE_DATE) as Sig_Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year (CREATE_DATE) as Sig_Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 's' as FLAG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(CENTRE_NO=1,'A',if(CENTRE_NO=2,'B'))&amp;nbsp; as TaxCentreNo&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;Sig;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop table Sig;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, Trans(fact table) is having field PAYER_NO and has field CENTRE_NO in similar format as of QVD Payer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I reload it throws an error (Trans) field "TaxCentreNo" not found. Though this field is available in both fact table and newly created "Sig_Payer" table (I already added fields of "Payer" using left join with "Sig" in "Sig".) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request your Step by Step Resolution:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Your guidelines in this regard is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards..&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 22:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scenario-Getting-error-when-combining-QVDs-using-combination-of/m-p/646319#M474127</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2014-10-01T22:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario: Getting error when combining QVDs using combination of left join and concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Scenario-Getting-error-when-combining-QVDs-using-combination-of/m-p/646320#M474128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd expect an error about CENTRE_NO not being found when creating Payer_Sig since you commented it out in the load for Payer. Other than that make sure to use the exact case-sensitive field names. Qlikview is case-sensitive about field names. Perhaps you made a typo somewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 08:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scenario-Getting-error-when-combining-QVDs-using-combination-of/m-p/646320#M474128</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-02T08:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario: Getting error when combining QVDs using combination of left join and concatenate</title>
      <link>https://community.qlik.com/t5/QlikView/Scenario-Getting-error-when-combining-QVDs-using-combination-of/m-p/646321#M474129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your post. It helped me in fixing the issue. I removed the comment for "CENTRE_NO" and additionally created a common key for "date" coming from two different fields from (Trans) and (Sig). With this Bar chart, I need the field "CREATE_DATE" from QVD "Sig".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is yet to be verified. Wondering, if I retain both the fields "CENTRE_NO" and "TaxCentreNo"(which is again derived from "CENTRE_NO") for QVD "payer", won't it generate duplicate values while showing report data. Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 19:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scenario-Getting-error-when-combining-QVDs-using-combination-of/m-p/646321#M474129</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2014-10-02T19:44:38Z</dc:date>
    </item>
  </channel>
</rss>

