<?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: Multiple connection String in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773319#M1038044</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;BR /&gt;First, Concatenate 2 tables and than Use CommonFlag field in it. See example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1: // Data Source Oracle&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;D,&lt;/P&gt;&lt;P&gt;E,&lt;/P&gt;&lt;P&gt;F,&lt;/P&gt;&lt;P&gt;'ORACLE' AS CommonFlag,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;FROM XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE(Table1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2: // Data Source SQL Server&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;D,&lt;/P&gt;&lt;P&gt;E,&lt;/P&gt;&lt;P&gt;F,&lt;/P&gt;&lt;P&gt;'SQL' AS CommonFlag,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;FROM XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Reload, Use the field CommonFlag and use it in Chart (Straight Table or Pivot Chart). See Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) For Oracle Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: if(CommonFlag='ORACLE',CommonFlag)&amp;nbsp; than check the option suppress when value is null :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="74006" alt="Suppressss.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74006_Suppressss.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Use other dimension and your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the same above steps for SQL Server.&lt;/P&gt;&lt;P&gt;Dimension: if(CommonFlag='SQL',CommonFlag)&amp;nbsp; than check the option suppress when value is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also hide this calculated field in Straight in case if you don't want to show it to users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="74007" alt="Hide Fieldd.png" class="jive-image image-2" src="/legacyfs/online/74007_Hide Fieldd.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Av7eN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2014 09:11:56 GMT</pubDate>
    <dc:creator>aveeeeeee7en</dc:creator>
    <dc:date>2014-12-22T09:11:56Z</dc:date>
    <item>
      <title>Multiple connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773313#M1038038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two connection string. one with Oracle and another one with Sql Server. By using both connection i want to show data in one table box. but problem is when i wants to show data in one table box that time duplicate data comes. For your better understanding i have attached my file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Masba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 08:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773313#M1038038</guid>
      <dc:creator />
      <dc:date>2014-12-22T08:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773314#M1038039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Masba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will surely create duplicate results because you have two different values from both the tables hence resulting in duplication.&lt;/P&gt;&lt;P&gt;to resolve this you have two options&lt;/P&gt;&lt;P&gt;1)Either you check both should have same data for same name of fields and same combination/association with other columns or fields.&lt;/P&gt;&lt;P&gt;2)Or, if you want to add the values based on brand names or category names,you will have to change your script by using group by function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 08:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773314#M1038039</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2014-12-22T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773315#M1038040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I sort your data Brand name I do not see any duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a best practice to eliminate the synthetic keys with a surrogate key.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="146505.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74004_146505.jpg" style="height: 227px; width: 620px;" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 08:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773315#M1038040</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2014-12-22T08:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773316#M1038041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi your preload table &lt;/P&gt;&lt;P&gt;C_DEPOT_SALES_VALUE_APEX_IT&lt;/P&gt;&lt;P&gt;isn't connected to the other data &lt;/P&gt;&lt;P&gt;you need to change your load script to something like &lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; CT.BRAND_CODE AS Brand_Id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; CT.BRAND as Brand_Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp; CT.MAIN_CODE aS Category_Id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; CT.CATEGORY_DESC as Category_name ;&lt;/P&gt;&lt;P&gt;select&amp;nbsp; CT.BRAND ,CT.BRAND_CODE ,CT.CATEGORY_DESC ,CT.MAIN_CODE ,&amp;nbsp; sum(dsv.SALES_QTY) Depot_Pre_Sales_Qty, &lt;/P&gt;&lt;P&gt;sum(DSV.SALES_VALUE) Depot_Pre_SALES_VALUE&amp;nbsp; from C_DEPOT_SALES_VALUE_APEX_IT dsv , C_APEX_IT_PART_CATEGORIZE CT &lt;/P&gt;&lt;P&gt;where&amp;nbsp; dsv.INVOICE_DATE&amp;nbsp; &amp;gt;= add_months( TO_DATE(('$(vReFromDate)'), 'MM/DD/yyyy'), -12 )&lt;/P&gt;&lt;P&gt;and dsv.INVOICE_DATE&amp;nbsp; &amp;lt;= add_months( TO_DATE(('$(vReToDate)'), 'MM/DD/yyyy'), -12 ) &lt;/P&gt;&lt;P&gt;and&amp;nbsp; DSV.PART_NO=CT.PART_NO&amp;nbsp; group by&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;CT.BRAND,CT.BRAND_CODE,CT.CATEGORY_DESC,CT.MAIN_CODE&lt;/P&gt;&lt;P&gt;order by CT.BRAND_CODE,CT.MAIN_CODE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 09:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773316#M1038041</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2014-12-22T09:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773317#M1038042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Saumya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply.. I have already consider your second option in my script but problem is same..pls help me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 09:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773317#M1038042</guid>
      <dc:creator />
      <dc:date>2014-12-22T09:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773318#M1038043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your sugesstion i have change my script but faceing problem... After run my script one error come. please check attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Masba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 09:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773318#M1038043</guid>
      <dc:creator />
      <dc:date>2014-12-22T09:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773319#M1038044</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;BR /&gt;First, Concatenate 2 tables and than Use CommonFlag field in it. See example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1: // Data Source Oracle&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;D,&lt;/P&gt;&lt;P&gt;E,&lt;/P&gt;&lt;P&gt;F,&lt;/P&gt;&lt;P&gt;'ORACLE' AS CommonFlag,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;FROM XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE(Table1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2: // Data Source SQL Server&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;D,&lt;/P&gt;&lt;P&gt;E,&lt;/P&gt;&lt;P&gt;F,&lt;/P&gt;&lt;P&gt;'SQL' AS CommonFlag,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;FROM XYZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Reload, Use the field CommonFlag and use it in Chart (Straight Table or Pivot Chart). See Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) For Oracle Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: if(CommonFlag='ORACLE',CommonFlag)&amp;nbsp; than check the option suppress when value is null :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="74006" alt="Suppressss.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74006_Suppressss.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Use other dimension and your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the same above steps for SQL Server.&lt;/P&gt;&lt;P&gt;Dimension: if(CommonFlag='SQL',CommonFlag)&amp;nbsp; than check the option suppress when value is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also hide this calculated field in Straight in case if you don't want to show it to users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="74007" alt="Hide Fieldd.png" class="jive-image image-2" src="/legacyfs/online/74007_Hide Fieldd.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Av7eN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 09:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773319#M1038044</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-12-22T09:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple connection String</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773320#M1038045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please Load data sheets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 09:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-connection-String/m-p/773320#M1038045</guid>
      <dc:creator />
      <dc:date>2014-12-22T09:19:23Z</dc:date>
    </item>
  </channel>
</rss>

