<?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: Loading mixed Datatypes in a column from Excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822748#M290020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider a generic load that will pivot the rows into separate columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need a key to do this, below i assigned a generic key but in real life it would be a fact based key like transaction ID or trade ID or order ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; rowno() as Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; A as Measure, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B as Value&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="154747" data-objecttype="1" href="http://community.qlik.com/thread/154747"&gt;http://community.qlik.com/thread/154747&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good blog spot here on generic loads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3629"&gt;The Generic Load&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 15:34:58 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2015-03-03T15:34:58Z</dc:date>
    <item>
      <title>Loading mixed Datatypes in a column from Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822744#M290016</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'm loading in 2 columns of data from Excel. Column A is list of questions, Column B contains values. The format of the values in column B differs from row to row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 184px; height: 78px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;A&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;B&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Headcount&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12,050&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;FTE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10,523.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;% Required&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;75%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Income YTD&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;£12.7M&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem i have is the way Qlik interprets the data type &amp;amp; format of column B - it decides the format of the data type from the first value it encounters and applies that format to the rest of the values as it loads them in. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example Qlik will interpret all the column B values as numbers. I need to retain the format as it is in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822744#M290016</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2015-03-03T15:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Loading mixed Datatypes in a column from Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822745#M290017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wonky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Text&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;A&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Text&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;B&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;B&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt; &lt;STRONG&gt;[Issues\Loading mixed Datatypes in a column from Excel.xlsx]&lt;/STRONG&gt;&lt;BR /&gt; (&lt;SPAN style="color: #0000ff;"&gt;ooxml&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; Sheet1); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will load all values as text rather than assigning a datatype&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822745#M290017</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-03-03T15:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loading mixed Datatypes in a column from Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822746#M290018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried that and it didn't work. as in the example above QV would treat as values as a number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822746#M290018</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2015-03-03T15:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Loading mixed Datatypes in a column from Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822747#M290019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it looks like it is working for me&lt;/P&gt;&lt;P&gt;what version are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822747#M290019</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-03-03T15:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loading mixed Datatypes in a column from Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822748#M290020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider a generic load that will pivot the rows into separate columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need a key to do this, below i assigned a generic key but in real life it would be a fact based key like transaction ID or trade ID or order ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; rowno() as Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp; A as Measure, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B as Value&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="154747" data-objecttype="1" href="http://community.qlik.com/thread/154747"&gt;http://community.qlik.com/thread/154747&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good blog spot here on generic loads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3629"&gt;The Generic Load&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822748#M290020</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-03T15:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Loading mixed Datatypes in a column from Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822749#M290021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to make sure that the column B is formatted as text in Excel, then it works fine, see the attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:36:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822749#M290021</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-03-03T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loading mixed Datatypes in a column from Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822750#M290022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks everyone - excel driving me nuts!!! issue was with excel, column format etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;got round the issue by saving my excel file as csv - and importing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again - i should drink less coffee &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 15:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-mixed-Datatypes-in-a-column-from-Excel/m-p/822750#M290022</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2015-03-03T15:40:11Z</dc:date>
    </item>
  </channel>
</rss>

