<?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: Excel file with multiple header rows and commas for decimals in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58781#M342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the first view it looked fine. Difficult to say what could be go wrong in Sense. A t first I would check with TRACE or the debugger what the used variables really contain to see if there is anything different as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside this I would remove the comment by vType or using as /* comment */ instead of // - because it's a potential risk: &lt;A href="https://community.qlik.com/docs/DOC-8694"&gt;Well-commented variables. Be careful!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regard to vVDims it should work - maybe there is some bug in this. An alternatively could be to set the whole crosstable-statement as variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCrosstable = 'Crosstable(ValCol, Amount, ' &amp;amp; $(vVDims) &amp;amp; ')';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vCrosstable)&lt;/P&gt;&lt;P&gt;load ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 05:19:47 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-05-02T05:19:47Z</dc:date>
    <item>
      <title>Excel file with multiple header rows and commas for decimals</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58775#M336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to work with a file that comes from an industrial computer.&amp;nbsp; Before I can import into my Qlik application, I need to figure out how to handle the multiple header rows and data that uses a comma for a decimal point.&amp;nbsp; (The data comes from a Priva system if anyone's familiar).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a sample of the data.&amp;nbsp; What I'd like to do is use Row 1 for the field names.&amp;nbsp; I'm not sure what do to with Row 2,as it seems to contain the computer or sensor location for that particular column of data.&amp;nbsp; Row 3 is a unit of measure, so possibly that could be concatenated after the field name from Row 1 (if that's possible).&amp;nbsp; I will then need to also add a field name for column 1, row 1 because that is currently blank, but it should be something like ReadingDateTime.&amp;nbsp; More than likely I will split that field into separate date and time fields so I can have a TimeOfDay field for comparitive analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, I will need to convert the commas in the data to decimal points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone can provide suggestion on how to handle any of these challenges, please feel free to comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 21:05:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58775#M336</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2018-02-20T21:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file with multiple header rows and commas for decimals</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58776#M337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a way to do it without the units:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1 as ReadingDateTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("meas grh temp",',','.')) as "meas grh temp",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("meas grh temp1",',','.')) as "meas grh temp1",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("outside temp",',','.')) as "outside temp",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("meas CO2",',','.')) as "meas CO2",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("meas north",',','.')) as "meas north",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("meas south",',','.')) as "meas south",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("meas north1",',','.')) as "meas north1",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("meas south1",',','.')) as "meas south1",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("meas grh temp2",',','.')) as "meas grh temp2",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("meas RH",',','.')) as "meas RH",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("radiation sum",',','.')) as "radiation sum",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(replace("meas curtain 1",',','.')) as "meas curtain 1"&lt;/P&gt;&lt;P&gt;FROM [lib://TopLevelScripts/develop\01_QVS\PrivaTest.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [annual data]) where RecNo()&amp;gt;2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you'll have to customize the input path for your own environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 21:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58776#M337</guid>
      <dc:creator>stascher</dc:creator>
      <dc:date>2018-02-20T21:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file with multiple header rows and commas for decimals</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58777#M338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your data is a crosstable. In most cases it's very helpful to transform it into a normal table-structure with &lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt;‌. How to handle multiple header is described here: &lt;A href="https://community.qlik.com/docs/DOC-4527"&gt;multi_header_pivot_import.qvw&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this you could easily convert and format the numbers with num(num#()) and handling the various date-formats with alt(Format1, Format2, ...) and split your timestamp with date(floor(YourTimestamp)) as Date respectively time(frac(YourTimestamp)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 09:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58777#M338</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-02-21T09:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file with multiple header rows and commas for decimals</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58778#M339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Steven; I think this will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58778#M339</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2018-02-21T14:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file with multiple header rows and commas for decimals</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58779#M340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marcus.&amp;nbsp; I have used the Crosstable Load before, once or twice, so I am a bit familiar with it.&amp;nbsp; For some reason this data just didn't jump out at me as an obvious crosstable.&amp;nbsp; I'll take a look at it today, as well as your other suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58779#M340</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2018-02-21T14:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file with multiple header rows and commas for decimals</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58780#M341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm in Qlik Sense, but luckily also have one license for Qlik View.&amp;nbsp; I was able to open that QVW file and go through the script and adapt it for my file.&amp;nbsp; It worked great.&amp;nbsp; Thanks for posting that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit and update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been waiting on this since Priva was supposed to be looking into another alternative by giving us direct access to their SQL Server tables.&amp;nbsp; That hasn't happened yet, so I tried running my modified script (which worked in Qlikview) in Qlik Sense and it does not work.&amp;nbsp; There are syntax errors that I cannot resolve.&amp;nbsp; I tried getting help on the syntax via another community post, but the suggestion didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The errors appear to be occuring in the Levels and CT areas of the script, while trying to interpret the variables vType and vVDims.&amp;nbsp; Those variables are declared earlier in the script as follows:&lt;/P&gt;&lt;P&gt;SET vType = 'ooxml'; //&amp;nbsp; 'ooxml'&lt;/P&gt;&lt;P&gt;LET vHDims = FieldValueCount('HFieldName');&lt;/P&gt;&lt;P&gt;LET vVDims = FieldValueCount('VFieldName');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the syntax errors seem to be related to these variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201193" alt="qlik_headers_file_script_error.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201193_qlik_headers_file_script_error.jpg" style="height: 287px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Any ideas for getting this to work in Qlik Sense &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58780#M341</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2018-02-22T15:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file with multiple header rows and commas for decimals</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58781#M342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the first view it looked fine. Difficult to say what could be go wrong in Sense. A t first I would check with TRACE or the debugger what the used variables really contain to see if there is anything different as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside this I would remove the comment by vType or using as /* comment */ instead of // - because it's a potential risk: &lt;A href="https://community.qlik.com/docs/DOC-8694"&gt;Well-commented variables. Be careful!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regard to vVDims it should work - maybe there is some bug in this. An alternatively could be to set the whole crosstable-statement as variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCrosstable = 'Crosstable(ValCol, Amount, ' &amp;amp; $(vVDims) &amp;amp; ')';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vCrosstable)&lt;/P&gt;&lt;P&gt;load ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 05:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58781#M342</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-05-02T05:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file with multiple header rows and commas for decimals</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58782#M343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I replaced all // with /* */ and it made no difference.&amp;nbsp; I stepped through the script in the debugger and I see the following values for variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vReplaces = Replace(1,top,StrCnd(null)),Replace(1,top,StrCnd(null)),Replace(2,top,StrCnd(null))&lt;/P&gt;&lt;P&gt;vRemoveRows = Remove(Row,Pos(Top,1))&lt;/P&gt;&lt;P&gt;vHFieldList = @1 as HDim1,@2 as HDim2,@3 as HDim3&lt;/P&gt;&lt;P&gt;vVDims = 1&lt;/P&gt;&lt;P&gt;vHDims = 3&lt;/P&gt;&lt;P&gt;vType = "ooxml"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like the idea of putting the whole crosstable command as a variable so I'll try that next (if I can get the other issue fixed first).&amp;nbsp; It seems that the Load command doesn't like filtered variables....probably need to open a ticket with tech. support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 16:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58782#M343</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2018-05-07T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file with multiple header rows and commas for decimals</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58783#M344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Last week we had a similar case with nested variables by one of our local usergroup meetings and the cause of the issues were inappropriate quotes around some variables and field-values. In your case I think the quotes here: &lt;STRONG&gt;vType = "ooxml"&lt;/STRONG&gt; are wrong and it should be rather:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vType = ooxml;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;let vType = 'ooxml';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 10:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58783#M344</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-05-08T10:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file with multiple header rows and commas for decimals</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58784#M345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the additional thoughts on this issue Marcus.&amp;nbsp; I did verify that my variables are defined with single quotes and I am not using full quotes for any variables.&amp;nbsp; I don't think it works with no quotes, and the single quotes should be correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps this is a bug in Sense...I've opened a case with tech support and I'm hoping they can shed a little light on the matter.&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;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 13:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Excel-file-with-multiple-header-rows-and-commas-for-decimals/m-p/58784#M345</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2018-05-08T13:39:39Z</dc:date>
    </item>
  </channel>
</rss>

