<?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: linking to excel and sql in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541097#M202259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason qlikview creates a sync key, is that you have more than one field with the same name in the excel and sql. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this you could do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant as conslink,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specialty &amp;amp; '!' &amp;amp; Consultant as ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant as Consultantexcel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specialty as SpecialtyExcel&lt;/P&gt;&lt;P&gt;from excel;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Consultant as conslink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specialty &amp;amp; '!' &amp;amp; Consultant as ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant as Consultantsql,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specialty as SpecialtySQL&lt;/P&gt;&lt;P&gt;from SQL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also leave out the Specialty fi in the load from SQL, if you're only showing the consultants in the Excel, it makes sense to only load the specialty from the excel. Then you don't need to rename to SpecialtyExcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Sep 2013 09:50:12 GMT</pubDate>
    <dc:creator>trappersw</dc:creator>
    <dc:date>2013-09-19T09:50:12Z</dc:date>
    <item>
      <title>linking to excel and sql</title>
      <link>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541094#M202256</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;I have a list box for session consultant which is from a view in sql, I also have an excel spreadsheet that has the session consultants in with additional information that is pulled into the dashboard. There are more consultants in the sql view than on the spreadsheet so it has created a syn table which is working fine, however I only want the consultants that appear on the spreadsheet to be pulled through onto the dashboard and all the others ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried linking it in different ways but it still brings through additional consultants or various parts of the dashboard dont link if these two&amp;nbsp; fields aren't lniked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense, how can I do it so only the cons in the spreadsheet appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 09:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541094#M202256</guid>
      <dc:creator />
      <dc:date>2013-09-19T09:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: linking to excel and sql</title>
      <link>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541095#M202257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you could do in this case is to load the cons from the excel-file twice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One time with the same name as in the SQL, so that you can keep linking the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; consexcel as conslink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; consexcel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; someotherfield&lt;/P&gt;&lt;P&gt;from excel;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; consSQL as conslink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; consSQL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; someSLQfield&lt;/P&gt;&lt;P&gt;from SQL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way you can use 'consexcel' in your listbox, and it will only contain the consultants in your excelfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: it is best practice to always avoid synthetic keys. You could probably avoid this by constructing ID's by concatenating the fields that cause the sync key. If these are numeric fields, use a sign to separate them: for example field1 &amp;amp;'!'&amp;amp; field2 as ID. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 09:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541095#M202257</guid>
      <dc:creator>trappersw</dc:creator>
      <dc:date>2013-09-19T09:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: linking to excel and sql</title>
      <link>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541096#M202258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you thats worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still have syn key table - it links the excel and the view on specialty and consultant, is this becuase there are more specialties in the view than on the spreadsheet? and More consultants in the view than in the spreadsheet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 09:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541096#M202258</guid>
      <dc:creator />
      <dc:date>2013-09-19T09:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: linking to excel and sql</title>
      <link>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541097#M202259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason qlikview creates a sync key, is that you have more than one field with the same name in the excel and sql. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this you could do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant as conslink,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specialty &amp;amp; '!' &amp;amp; Consultant as ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant as Consultantexcel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specialty as SpecialtyExcel&lt;/P&gt;&lt;P&gt;from excel;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Consultant as conslink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specialty &amp;amp; '!' &amp;amp; Consultant as ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant as Consultantsql,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specialty as SpecialtySQL&lt;/P&gt;&lt;P&gt;from SQL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also leave out the Specialty fi in the load from SQL, if you're only showing the consultants in the Excel, it makes sense to only load the specialty from the excel. Then you don't need to rename to SpecialtyExcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 09:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541097#M202259</guid>
      <dc:creator>trappersw</dc:creator>
      <dc:date>2013-09-19T09:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: linking to excel and sql</title>
      <link>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541098#M202260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will this work even though some consultants have 2 different specialities e.g. ENT and Paed ENT or Orthopaedics and Hand Surgery?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kate Hunter&lt;/P&gt;&lt;P&gt;Information Analyst&lt;/P&gt;&lt;P&gt;Planned Care Team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Level 5&lt;/P&gt;&lt;P&gt;Derby Hospitals NHS Foundation Trust&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tel: 01332 788650&lt;/P&gt;&lt;P&gt;E-mail: Kate.Hunter3@nhs.net&amp;lt;mailto:Kate.Hunter3@nhs.net&amp;gt;&lt;/P&gt;&lt;P&gt;ext: 88650&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 09:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541098#M202260</guid>
      <dc:creator />
      <dc:date>2013-09-19T09:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: linking to excel and sql</title>
      <link>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541099#M202261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If all specialties are in the excel, yes. If some specialties that you want to show are in the excel, and other in the SQL, maybe another kind of link between these tables can be considered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp_Consultant&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant as conslink,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specialty as SpecialtyExcel&lt;/P&gt;&lt;P&gt;from excel;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join temp_Consultant:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant as conslink,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specialty as SpecialtySQL&lt;/P&gt;&lt;P&gt;from SQL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consultant:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(not(isnull(SpecialtyExcel)),SpecialtyExcel,SpecialtySQL) as Specialty&lt;/P&gt;&lt;P&gt;resident temp_Consultant;&lt;/P&gt;&lt;P&gt;drop table temp_Consultant;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps: my example above was not completely accurate, you will still get a sync key with conslink and ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 10:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/linking-to-excel-and-sql/m-p/541099#M202261</guid>
      <dc:creator>trappersw</dc:creator>
      <dc:date>2013-09-19T10:03:21Z</dc:date>
    </item>
  </channel>
</rss>

