<?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: Dynamic variables: Use Concatenated strings as variable in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093303#M640782</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;maybe you could use one parameterized variable instead, maybe similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/483289"&gt;Re: Variable troubles&lt;/A&gt;&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>Sun, 06 Mar 2016 02:07:41 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2016-03-06T02:07:41Z</dc:date>
    <item>
      <title>Dynamic variables: Use Concatenated strings as variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093299#M640778</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 want to create a variable that contain different variables depending on selections i field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared the following variables in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let &lt;SPAN style="font-size: 13.3333px;"&gt;v&lt;SPAN style="font-size: 13.3333px;"&gt;Product_1&lt;/SPAN&gt;Max = 'Max({&amp;lt;Product = {'Product 1}&amp;gt;} Sales)';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;let &lt;SPAN style="font-size: 13.3333px;"&gt;v&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Product_2&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Max &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;= 'Max({&amp;lt;Product = {'Product 1}&amp;gt;} Sales)';&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;let &lt;SPAN style="font-size: 13.3333px;"&gt;v&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Product_3&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Max &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;= 'Max({&amp;lt;Product = {'Product 1}&amp;gt;} Sales)';&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have created a table like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="118" style="border: 1px solid rgb(0, 0, 0); width: 94px; height: 120px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;vProduct&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;vProduct_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vProduct_2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vProduct_3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to create a variable in the script that concatenates the selected value in "vProduct" field with Max, to create: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;$([Selected product]+"Max")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have tried:&lt;/STRONG&gt; LET vMax = ''&amp;amp;'$'&amp;amp;'(=' &amp;amp; chr(39) &amp;amp; '&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;amp;vProduct&amp;amp;&lt;/SPAN&gt;' &amp;amp; chr(39) &amp;amp; '&amp;amp;' &amp;amp; chr(39) &amp;amp; 'Max' &amp;amp; chr(39) &amp;amp;')';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not work however.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 15:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093299#M640778</guid>
      <dc:creator />
      <dc:date>2016-03-04T15:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variables: Use Concatenated strings as variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093300#M640779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create your table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProductMaxExpressions:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Product, MaxSales&lt;/P&gt;&lt;P&gt;Product 1, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Max({&amp;lt;Product = {'Product 1}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Product 2, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Max({&amp;lt;Product = {'Product 2}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Product 3, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Max({&amp;lt;Product = {'Product 3}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when you select a Product you can use =$(=only(MaxSales)) as expression in a chart or text box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 18:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093300#M640779</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-04T18:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variables: Use Concatenated strings as variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093301#M640780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks fot the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, my example represents a bigger solution where i vant more to crate and refer to more variables easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, I want to use the technique to create more variables by ONLY relacing the "Max" string with for example: Min, Avg, Median, +++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 07:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093301#M640780</guid>
      <dc:creator />
      <dc:date>2016-03-05T07:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variables: Use Concatenated strings as variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093302#M640781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I understood correctly you can do something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Product, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sale&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[Rank.xlsx]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Variable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD 1 as Temp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoGenerate(1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;for i=1 to FieldValueCount('Product')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;let vProduct = FieldValue('Product','$(i)');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Concatenate(Variable)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD '$(vProduct)' as PRODUCT,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Sale) as SelectedProduct,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Sale) as MaxSale&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Data&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where Product = '$(vProduct)'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Group by Product;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NEXT i&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Field Temp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117067_Untitled.jpg" style="height: 277px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 07:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093302#M640781</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-03-05T07:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variables: Use Concatenated strings as variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093303#M640782</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;maybe you could use one parameterized variable instead, maybe similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/483289"&gt;Re: Variable troubles&lt;/A&gt;&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>Sun, 06 Mar 2016 02:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093303#M640782</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-03-06T02:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic variables: Use Concatenated strings as variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093304#M640783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am a new user of qlikview. the scrip below does axactly what i would like to do.with my data. i tried it with my data but it is not working. i can't understant why: &lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Opération_N° as Product, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qté, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mnt_Net_client as Sale, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; Qté*Mnt_Net_client as [MntM] ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; //&amp;nbsp;&amp;nbsp; Qté*TF as [TFM]&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Feuil2$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable:&lt;/P&gt;&lt;P&gt;LOAD 1 as Temp&lt;/P&gt;&lt;P&gt;AutoGenerate(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=1 to FieldValueCount('Product')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vProduct = FieldValue('Product','$(i)');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Variable)&lt;/P&gt;&lt;P&gt;LOAD '$(vProduct)' as PRODUCT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Sale) as SelectedProduct,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Sale) as MaxSale&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;where Product = '$(vProduct)'&lt;/P&gt;&lt;P&gt;Group by Product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field Temp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I &lt;IMG __jive_id="150433" alt="Capturesaleop.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150460_Capturesaleop.PNG" style="height: auto;" /&gt;&lt;IMG __jive_id="150443" alt="Capture_opperation.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/150473_Capture_opperation.PNG" style="height: 375px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 13:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-variables-Use-Concatenated-strings-as-variable-in-script/m-p/1093304#M640783</guid>
      <dc:creator />
      <dc:date>2017-01-23T13:20:09Z</dc:date>
    </item>
  </channel>
</rss>

