<?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: Read variable value by name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Read-variable-value-by-name/m-p/1555887#M599547</link>
    <description>&lt;P&gt;I think I wouldn't use multiple variables for such a case else just a mapping like:&lt;/P&gt;&lt;P&gt;map: mapping load * inline [&lt;BR /&gt;Jahr, Wert&lt;BR /&gt;2018, 1&lt;BR /&gt;2019, 2];&lt;/P&gt;&lt;P&gt;and then:&lt;/P&gt;&lt;P&gt;load *, applymap('map', year(&lt;FONT size="1" color="#800000"&gt;referentie_datum&lt;/FONT&gt;), 'any default value') as var_value&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2019 11:01:54 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2019-03-13T11:01:54Z</dc:date>
    <item>
      <title>Read variable value by name</title>
      <link>https://community.qlik.com/t5/QlikView/Read-variable-value-by-name/m-p/1555865#M599546</link>
      <description>&lt;P&gt;Is it possible to dynamically read the value of a variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="1"&gt;load if&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;year&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;referentie_datum&lt;/FONT&gt;&lt;FONT size="1"&gt;) = 2018,&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#808080" size="1"&gt;$(v_kosten_laden_lossen_18)&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#808080" size="1"&gt;$(v_kosten_laden_lossen_19)&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt;&lt;BR /&gt;)&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;as&lt;/FONT&gt; &lt;FONT color="#800000" size="1"&gt;var_value&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I want to get rid of the year clause. Something like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#808080" size="1"&gt;$(v_kosten_laden_lossen_&amp;amp; right(year(&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt;referentie_datum,2))&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-variable-value-by-name/m-p/1555865#M599546</guid>
      <dc:creator>mnbeemster</dc:creator>
      <dc:date>2024-11-16T21:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Read variable value by name</title>
      <link>https://community.qlik.com/t5/QlikView/Read-variable-value-by-name/m-p/1555887#M599547</link>
      <description>&lt;P&gt;I think I wouldn't use multiple variables for such a case else just a mapping like:&lt;/P&gt;&lt;P&gt;map: mapping load * inline [&lt;BR /&gt;Jahr, Wert&lt;BR /&gt;2018, 1&lt;BR /&gt;2019, 2];&lt;/P&gt;&lt;P&gt;and then:&lt;/P&gt;&lt;P&gt;load *, applymap('map', year(&lt;FONT size="1" color="#800000"&gt;referentie_datum&lt;/FONT&gt;), 'any default value') as var_value&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 11:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-variable-value-by-name/m-p/1555887#M599547</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-03-13T11:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read variable value by name</title>
      <link>https://community.qlik.com/t5/QlikView/Read-variable-value-by-name/m-p/1555899#M599548</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for helping, but I have more than one 1 variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var1&amp;nbsp; ---- value 2018 ---- value 2019&lt;BR /&gt;Var2&amp;nbsp; ---- value 2018 ---- value 2019&lt;BR /&gt;etc&lt;/P&gt;&lt;P&gt;Next year, there will be value 2020&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 11:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-variable-value-by-name/m-p/1555899#M599548</guid>
      <dc:creator>mnbeemster</dc:creator>
      <dc:date>2019-03-13T11:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Read variable value by name</title>
      <link>https://community.qlik.com/t5/QlikView/Read-variable-value-by-name/m-p/1555900#M599549</link>
      <description>&lt;P&gt;It's just an example and you could simply extend the mapping-table to all years/values you need.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 11:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Read-variable-value-by-name/m-p/1555900#M599549</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-03-13T11:23:33Z</dc:date>
    </item>
  </channel>
</rss>

