<?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: QlikView : Display value of variable with dynamic name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167500#M379951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;How about this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style=": ; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;$(&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;'vLot_'&amp;amp; N_LOT &amp;amp;'_Actif')&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2016 12:29:02 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-18T12:29:02Z</dc:date>
    <item>
      <title>QlikView : Display value of variable with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167499#M379950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table with a column id : N_LOT :&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;For each record, I have created a variable vLot_x_Actif, where x=N_LOT :&lt;/P&gt;&lt;P&gt;vLot_1_Actif&lt;/P&gt;&lt;P&gt;vLot_2_Actif&lt;/P&gt;&lt;P&gt;vLot_3_Actif&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to display in a straight table the column N_LOT, the variable name and the variable value.&lt;/P&gt;&lt;P&gt;For the variable name :I put &lt;EM&gt;&lt;STRONG&gt;='vLot_'&amp;amp;N_LOT&amp;amp;'_Actif'&lt;/STRONG&gt;&lt;/EM&gt; =&amp;gt; OK, It works&lt;/P&gt;&lt;P&gt;For the varaible value , I put : &lt;EM&gt;&lt;STRONG&gt;=$('vLot_'&amp;amp; N_LOT &amp;amp;'_Actif')&lt;/STRONG&gt;&lt;/EM&gt; but a null value is displayed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you ideas for displaying values of these variables ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 09:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167499#M379950</guid>
      <dc:creator>lescoulm</dc:creator>
      <dc:date>2016-05-18T09:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView : Display value of variable with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167500#M379951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;How about this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style=": ; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;$(&lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt;'vLot_'&amp;amp; N_LOT &amp;amp;'_Actif')&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 12:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167500#M379951</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-18T12:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView : Display value of variable with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167501#M379952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works, if I select one record&lt;/P&gt;&lt;P&gt;If I display all records, null value is diaplayed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 12:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167501#M379952</guid>
      <dc:creator>lescoulm</dc:creator>
      <dc:date>2016-05-18T12:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView : Display value of variable with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167502#M379953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might have to use Pick(Match()) to get this to work. Exact syntax would have to be based on your dimension. Would you be able to provide a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 15:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167502#M379953</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-18T15:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView : Display value of variable with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167503#M379954</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;instead of defining multiple variables maybe you could use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/dollar-sign-expansion-using-parameters.htm?q=variable%20parameter" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/dollar-sign-expansion-using-parameters.htm?q=variable%20parameter"&gt;Dollar-sign expansion using parameters ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't help with the issue of only getting results with one selected record as dollar sign expansions are not evaluated per row of your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 19:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167503#M379954</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-05-18T19:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView : Display value of variable with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167504#M379955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your proposal but It does not seem to work.&lt;/P&gt;&lt;P&gt;In the script, I have defined :&lt;/P&gt;&lt;P&gt;Set Get_Var_Value='$1&amp;amp;$2&amp;amp;$3';&lt;/P&gt;&lt;P&gt;in the straight table, I created the expression &lt;/P&gt;&lt;P&gt;=$(=$(Get_Var_Value('vLot_',N_LOT,'_Actif'))) =&amp;gt; Does not work&lt;/P&gt;&lt;P&gt;If I put =$(=$(Get_Var_Value('vLot_',2,'_Actif'))) =&amp;gt; Ok, work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My need is to dynamically build the variable name to get its value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 07:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167504#M379955</guid>
      <dc:creator>lescoulm</dc:creator>
      <dc:date>2016-05-19T07:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView : Display value of variable with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167505#M379956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here an example of script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=' ';&lt;BR /&gt;SET DecimalSep=',';&lt;BR /&gt;SET MoneyThousandSep=' ';&lt;BR /&gt;SET MoneyDecimalSep=',';&lt;BR /&gt;SET MoneyFormat='# ##0,00 €;-# ##0,00 €';&lt;BR /&gt;SET TimeFormat='hh:mm:ss';&lt;BR /&gt;SET DateFormat='DD/MM/YYYY';&lt;BR /&gt;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;BR /&gt;SET MonthNames='janv.;févr.;mars;avr.;mai;juin;juil.;août;sept.;oct.;nov.;déc.';&lt;BR /&gt;SET DayNames='lun.;mar.;mer.;jeu.;ven.;sam.;dim.';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TAB:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;N_LOT, Lot_Actif&lt;BR /&gt;1,0&lt;BR /&gt;2,0&lt;BR /&gt;3,1&lt;BR /&gt;4,1&lt;BR /&gt;5,0&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vNb_Lots = NoOfRows('TAB');&lt;BR /&gt;For vI = 0 to (vNb_Lots - 1)&lt;BR /&gt;Let vNom_Variable = 'vLot_' &amp;amp; Peek('N_LOT',vI,'TAB') &amp;amp; '_Actif';&lt;BR /&gt;Let [$(vNom_Variable)] = Peek('Lot_Actif',vI,'TAB');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 10:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167505#M379956</guid>
      <dc:creator>lescoulm</dc:creator>
      <dc:date>2016-05-19T10:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView : Display value of variable with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167506#M379957</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;the idea was to check if you could just create one parameterized variable instead of your multiple ones, given this is possible with the expressions your variables contain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post a sample application to test with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 21:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167506#M379957</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-05-20T21:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView : Display value of variable with dynamic name</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167507#M379958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here an example :&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 14:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Display-value-of-variable-with-dynamic-name/m-p/1167507#M379958</guid>
      <dc:creator>lescoulm</dc:creator>
      <dc:date>2016-05-21T14:19:01Z</dc:date>
    </item>
  </channel>
</rss>

