<?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: Part of expression($ sign expansion) doesnot come up while assigning that Qlik expression into variable ( expression and variables are in excel ta in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Part-of-expression-sign-expansion-doesnot-come-up-while/m-p/2012657#M1221817</link>
    <description>&lt;P&gt;Great! This method worked fine for me.&lt;/P&gt;
&lt;P&gt;But it will just create double the amount of variables by using one variable just for replace function:&lt;/P&gt;
&lt;P&gt;set $(vVar_name)="$(vVar_expression)";&lt;BR /&gt;set v$(vVar_name)final= "=replace([$(vVar_name)],'~','$')";&lt;/P&gt;
&lt;P&gt;Is there any way to get around this? Just curious. Doubling the number of variable might effect performance. That is my concern.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 11:56:26 GMT</pubDate>
    <dc:creator>Mapuna</dc:creator>
    <dc:date>2022-12-05T11:56:26Z</dc:date>
    <item>
      <title>Part of expression($ sign expansion) doesnot come up while assigning that Qlik expression into variable ( expression and variables are in excel table)</title>
      <link>https://community.qlik.com/t5/QlikView/Part-of-expression-sign-expansion-doesnot-come-up-while/m-p/2012595#M1221810</link>
      <description>&lt;P&gt;Consider an excel sheet as below, contains 2 columns one for variable name and other for variable expression.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnupamRaj_0-1670232874654.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95390i9C1FFC251B41B473/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnupamRaj_0-1670232874654.png" alt="AnupamRaj_0-1670232874654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This has to be loaded into qlik and these variables vA,vB,vC has to be created. I have done this using for loop as follows:&lt;/P&gt;
&lt;P&gt;vars:&lt;BR /&gt;LOAD&lt;BR /&gt;VarName,&lt;BR /&gt;VarExpression&lt;BR /&gt;FROM [lib://new path/variables.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;for i=0 to NoOfRows('vars')-1;&lt;BR /&gt;vVar_name=peek('VarName',$(i),'vars');&lt;BR /&gt;vVar_expression=peek('VarExpression',$(i),'vars');&lt;/P&gt;
&lt;P&gt;let $(vVar_name)='$(vVar_expression)';&lt;BR /&gt;next i;&lt;/P&gt;
&lt;P&gt;exit script;&lt;/P&gt;
&lt;P&gt;The problem is in the vB variable, within set analysis $(=max(year)) has been used&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnupamRaj_0-1670232874654.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95390i9C1FFC251B41B473/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnupamRaj_0-1670232874654.png" alt="AnupamRaj_0-1670232874654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This wont come into variable, just $&amp;lt;Year={}&amp;gt; with empty { } comes up. How to fix this?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnupamRaj_1-1670233228205.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95392iEB0E18B121828352/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnupamRaj_1-1670233228205.png" alt="AnupamRaj_1-1670233228205.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the above pic it is seen, vB has $&amp;lt;Year={ }&amp;gt; instead of $&amp;lt;Year={$(=max(Year))}&amp;gt;&lt;/P&gt;
&lt;P&gt;Note: It is properly allocated in data model.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnupamRaj_2-1670233378675.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95393i3D5731C194BEFAE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnupamRaj_2-1670233378675.png" alt="AnupamRaj_2-1670233378675.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 11:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-of-expression-sign-expansion-doesnot-come-up-while/m-p/2012595#M1221810</guid>
      <dc:creator>Mapuna</dc:creator>
      <dc:date>2022-12-05T11:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Part of expression doesnot come up while assigning that qlik expression into variable (where expression and variables are in excel table)</title>
      <link>https://community.qlik.com/t5/QlikView/Part-of-expression-sign-expansion-doesnot-come-up-while/m-p/2012602#M1221811</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Stop-Dollar-Sign-Expansion-in-the-script-Escape-Character/td-p/169162" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Stop-Dollar-Sign-Expansion-in-the-script-Escape-Character/td-p/169162&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Oldie but goodie - the same solutions should still apply.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 09:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-of-expression-sign-expansion-doesnot-come-up-while/m-p/2012602#M1221811</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-12-05T09:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Part of expression($ sign expansion) doesnot come up while assigning that Qlik expression into variable ( expression and variables are in excel ta</title>
      <link>https://community.qlik.com/t5/QlikView/Part-of-expression-sign-expansion-doesnot-come-up-while/m-p/2012657#M1221817</link>
      <description>&lt;P&gt;Great! This method worked fine for me.&lt;/P&gt;
&lt;P&gt;But it will just create double the amount of variables by using one variable just for replace function:&lt;/P&gt;
&lt;P&gt;set $(vVar_name)="$(vVar_expression)";&lt;BR /&gt;set v$(vVar_name)final= "=replace([$(vVar_name)],'~','$')";&lt;/P&gt;
&lt;P&gt;Is there any way to get around this? Just curious. Doubling the number of variable might effect performance. That is my concern.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 11:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-of-expression-sign-expansion-doesnot-come-up-while/m-p/2012657#M1221817</guid>
      <dc:creator>Mapuna</dc:creator>
      <dc:date>2022-12-05T11:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Part of expression($ sign expansion) doesnot come up while assigning that Qlik expression into variable ( expression and variables are in excel ta</title>
      <link>https://community.qlik.com/t5/QlikView/Part-of-expression-sign-expansion-doesnot-come-up-while/m-p/2012665#M1221818</link>
      <description>&lt;P&gt;set $(vVar_name)="=replace('$(vVar_expression)','~','$')";&lt;/P&gt;
&lt;P&gt;Just realized that this should work. Won't double the amount of variables.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 12:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Part-of-expression-sign-expansion-doesnot-come-up-while/m-p/2012665#M1221818</guid>
      <dc:creator>Mapuna</dc:creator>
      <dc:date>2022-12-05T12:06:02Z</dc:date>
    </item>
  </channel>
</rss>

