<?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: Set expressions filtered by variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expressions-filtered-by-variable/m-p/1079365#M641902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dollar sign expansion is changing your e_Liquidity_test definition to:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&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: 13px;"&gt;sum({&amp;lt;[Forecast_Period]={&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(v_toggle_forecast,0,'*')&lt;/SPAN&gt;}&amp;gt;} [Certified Value])&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: 13px;"&gt;&lt;BR /&gt;&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: 13px;"&gt;which is not a valid set modifier. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the solutions shown here (I recommend the Excel table solution a the end):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/198307"&gt;Can I SET or LET a variable to include a $(=...)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also have a look at &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3406"&gt;The Magic of Variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and double check the definitions of your variables with respect to leading equal signs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2016 11:10:01 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-01-27T11:10:01Z</dc:date>
    <item>
      <title>Set expressions filtered by variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expressions-filtered-by-variable/m-p/1079364#M641901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview masters!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling on a case related to expressions evaluation.&lt;/P&gt;&lt;P&gt;My dataset is as following "Partners", "Forecast_Period" [0 to n], "&lt;SPAN style="font-size: 13.3333px;"&gt;Certified Value" &lt;/SPAN&gt;and a toggle button to show or not the forecast [1 to n]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on my toggle button I did set the following action v_toggle_forecast=if(v_toggle_forecast=0,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a reusable filter as following : set v_Filter_Forecast = if(v_toggle_forecast,0,'*');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a sum expression : set e_Liquidity_test = sum({&amp;lt;[Forecast_Period]={$(v_Filter_Forecast)}&amp;gt;} [Certified Value]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I put that expression in a graph diretly it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;if i have it in the script and call it in the graph using $(&lt;SPAN style="font-size: 13.3333px;"&gt;e_Liquidity_test) is doesn't &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In what order these expressions get expanded and evaludated?&lt;/P&gt;&lt;P&gt;Where is my mistake?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 09:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expressions-filtered-by-variable/m-p/1079364#M641901</guid>
      <dc:creator />
      <dc:date>2016-01-27T09:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set expressions filtered by variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expressions-filtered-by-variable/m-p/1079365#M641902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dollar sign expansion is changing your e_Liquidity_test definition to:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&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: 13px;"&gt;sum({&amp;lt;[Forecast_Period]={&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(v_toggle_forecast,0,'*')&lt;/SPAN&gt;}&amp;gt;} [Certified Value])&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: 13px;"&gt;&lt;BR /&gt;&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: 13px;"&gt;which is not a valid set modifier. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the solutions shown here (I recommend the Excel table solution a the end):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/198307"&gt;Can I SET or LET a variable to include a $(=...)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also have a look at &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3406"&gt;The Magic of Variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and double check the definitions of your variables with respect to leading equal signs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 11:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expressions-filtered-by-variable/m-p/1079365#M641902</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-27T11:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set expressions filtered by variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expressions-filtered-by-variable/m-p/1079366#M641903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That thread about magic of variables helped me initially to orientate my research.&lt;/P&gt;&lt;P&gt;But I think the trick of getting the dollar sign separated from the parenthesis will be the solution.&lt;/P&gt;&lt;P&gt;I let you know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 11:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expressions-filtered-by-variable/m-p/1079366#M641903</guid>
      <dc:creator />
      <dc:date>2016-01-27T11:35:50Z</dc:date>
    </item>
  </channel>
</rss>

