<?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 Reading variable values from a file in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930262#M76620</link>
    <description>&lt;P&gt;Hallo community,&lt;/P&gt;
&lt;P&gt;you certainly had situations where it seems that the code is correct, yet it does not deliver what we expect. If this is the case, than it is an opportunity to learn something about how qlik is working.&lt;/P&gt;
&lt;P&gt;Thank you in advance for your support.&lt;/P&gt;
&lt;P&gt;ISSUE:&lt;/P&gt;
&lt;P&gt;I want to read the values of two KPIs into two variables. For this I read two rows from a sheet belonging to an xlsx file. Then I use the let assignment to assign the values of the fields read. And yet, this does not work... no idea why. I would expect that you might see where I am "blind".&lt;/P&gt;
&lt;P&gt;Here is the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Einlesen_KPIs:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;LOAD E AS KPIID1, &lt;BR /&gt;F AS KPIID2 &lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\wkiv1150\Desktop\BICC\BICC583\IMPORT\2022 04 01 Problems Kennzahlen fuer Maerz-2022 CMDB-Dashboard - Arbeitsdokument.xlsx]&lt;BR /&gt;(ooxml, no labels, header is 10 lines, table is [KPI 1-1 (NEU)])&lt;/P&gt;
&lt;P&gt;where RowNo()&amp;lt;1;&lt;/P&gt;
&lt;P&gt;store Einlesen_KPIs into [C:\Users\wkiv1150\Desktop\BICC\BICC583\IMPORT\Einlesen_KPIs.csv](txt, delimiter is ';');&lt;BR /&gt;/*&lt;/P&gt;
&lt;P&gt;Here is the content of the Einlesen_KPIs.csv:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;KPIID1;KPIID2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;43KUMANZPROBLM;43KUMANZERNEUTPROBLM&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;*/&lt;BR /&gt;&lt;BR /&gt;let vKPIID1=Peek('KPIID1',-1, Einlesen_KPIs);&lt;BR /&gt;let vKPIID2=Peek('KPIID2',-1, Einlesen_KPIs);&lt;BR /&gt;trace vKPIID1 $(KPIID1);&lt;BR /&gt;trace vKPIID2 $(KPIID2);&lt;/P&gt;
&lt;P&gt;##########&lt;/P&gt;
&lt;P&gt;The execution of this code look like follows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="draghici1109_0-1652432661824.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79342iE072BD2B61F517BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="draghici1109_0-1652432661824.png" alt="draghici1109_0-1652432661824.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which means the vKPIID1 and vKPIID2 are empty (Null()). What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 09:06:20 GMT</pubDate>
    <dc:creator>draghici1109</dc:creator>
    <dc:date>2022-05-13T09:06:20Z</dc:date>
    <item>
      <title>Reading variable values from a file</title>
      <link>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930262#M76620</link>
      <description>&lt;P&gt;Hallo community,&lt;/P&gt;
&lt;P&gt;you certainly had situations where it seems that the code is correct, yet it does not deliver what we expect. If this is the case, than it is an opportunity to learn something about how qlik is working.&lt;/P&gt;
&lt;P&gt;Thank you in advance for your support.&lt;/P&gt;
&lt;P&gt;ISSUE:&lt;/P&gt;
&lt;P&gt;I want to read the values of two KPIs into two variables. For this I read two rows from a sheet belonging to an xlsx file. Then I use the let assignment to assign the values of the fields read. And yet, this does not work... no idea why. I would expect that you might see where I am "blind".&lt;/P&gt;
&lt;P&gt;Here is the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Einlesen_KPIs:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;LOAD E AS KPIID1, &lt;BR /&gt;F AS KPIID2 &lt;BR /&gt;FROM&lt;BR /&gt;[C:\Users\wkiv1150\Desktop\BICC\BICC583\IMPORT\2022 04 01 Problems Kennzahlen fuer Maerz-2022 CMDB-Dashboard - Arbeitsdokument.xlsx]&lt;BR /&gt;(ooxml, no labels, header is 10 lines, table is [KPI 1-1 (NEU)])&lt;/P&gt;
&lt;P&gt;where RowNo()&amp;lt;1;&lt;/P&gt;
&lt;P&gt;store Einlesen_KPIs into [C:\Users\wkiv1150\Desktop\BICC\BICC583\IMPORT\Einlesen_KPIs.csv](txt, delimiter is ';');&lt;BR /&gt;/*&lt;/P&gt;
&lt;P&gt;Here is the content of the Einlesen_KPIs.csv:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;KPIID1;KPIID2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;43KUMANZPROBLM;43KUMANZERNEUTPROBLM&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;*/&lt;BR /&gt;&lt;BR /&gt;let vKPIID1=Peek('KPIID1',-1, Einlesen_KPIs);&lt;BR /&gt;let vKPIID2=Peek('KPIID2',-1, Einlesen_KPIs);&lt;BR /&gt;trace vKPIID1 $(KPIID1);&lt;BR /&gt;trace vKPIID2 $(KPIID2);&lt;/P&gt;
&lt;P&gt;##########&lt;/P&gt;
&lt;P&gt;The execution of this code look like follows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="draghici1109_0-1652432661824.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79342iE072BD2B61F517BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="draghici1109_0-1652432661824.png" alt="draghici1109_0-1652432661824.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which means the vKPIID1 and vKPIID2 are empty (Null()). What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930262#M76620</guid>
      <dc:creator>draghici1109</dc:creator>
      <dc:date>2022-05-13T09:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reading variable values from a file</title>
      <link>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930277#M76623</link>
      <description>&lt;P&gt;&lt;SPAN&gt;minor change, it should be 0 and table name should also be a string, in single quotes&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;let vKPIID1=Peek('KPIID1',&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;, 'Einlesen_KPIs');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;let vKPIID2=Peek('KPIID2',&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;, 'Einlesen_KPIs');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;trace vKPIID1 $(KPIID1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;trace vKPIID2 $(KPIID2);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930277#M76623</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-13T09:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reading variable values from a file</title>
      <link>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930286#M76624</link>
      <description>&lt;P&gt;Thank you for your quik reaction.&lt;/P&gt;
&lt;P&gt;I tested... the same results &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930286#M76624</guid>
      <dc:creator>draghici1109</dc:creator>
      <dc:date>2022-05-13T09:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reading variable values from a file</title>
      <link>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930291#M76625</link>
      <description>&lt;P&gt;Can you post a screenshot of "&lt;STRONG&gt;Einlesen_KPIs"&lt;/STRONG&gt; from the &lt;STRONG&gt;data model viewe&lt;/STRONG&gt;r;&amp;nbsp; is it actually loading any rows? if yes then how many&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930291#M76625</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-13T09:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reading variable values from a file</title>
      <link>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930294#M76626</link>
      <description>&lt;P&gt;I am doing coding in Qlik View &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the screenshot:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="draghici1109_0-1652434976921.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79351i21B48F520D1CEC09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="draghici1109_0-1652434976921.png" alt="draghici1109_0-1652434976921.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930294#M76626</guid>
      <dc:creator>draghici1109</dc:creator>
      <dc:date>2022-05-13T09:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reading variable values from a file</title>
      <link>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930296#M76627</link>
      <description>&lt;P&gt;You forgot the v in the variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let vKPIID1=Peek('KPIID1',0, 'Einlesen_KPIs');&lt;BR /&gt;let vKPIID2=Peek('KPIID2',0, 'Einlesen_KPIs');&lt;BR /&gt;trace vKPIID1 $(vKPIID1);&lt;BR /&gt;trace vKPIID2 $(vKPIID2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930296#M76627</guid>
      <dc:creator>eddie_wagt</dc:creator>
      <dc:date>2022-05-13T09:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reading variable values from a file</title>
      <link>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930305#M76629</link>
      <description>&lt;P&gt;that's right. Now is the world OK! Thank you to all of you!&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Reading-variable-values-from-a-file/m-p/1930305#M76629</guid>
      <dc:creator>draghici1109</dc:creator>
      <dc:date>2022-05-13T09:54:36Z</dc:date>
    </item>
  </channel>
</rss>

