<?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 analysis evaluation from string in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-evaluation-from-string/m-p/2430556#M96541</link>
    <description>&lt;P&gt;I'm not sure about what you are trying to achieve here, is it just a matter of storing expressions in a table in the load script and utilizing them in the charts ?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 23:46:36 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2024-03-13T23:46:36Z</dc:date>
    <item>
      <title>Set analysis evaluation from string</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-evaluation-from-string/m-p/2430545#M96540</link>
      <description>&lt;DIV id="bodyDisplay" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have set analysis expression stored in my database in string format and I would like to know if there's a way to evaluate this expression :&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;&amp;nbsp; &amp;nbsp;ID_EXPRESSION&lt;BR /&gt;&amp;nbsp; &amp;nbsp;EXPRESSION&lt;BR /&gt;FROM [lib://$(QvdConnection)/Expression.QVD]&lt;/P&gt;
&lt;DIV&gt;LET vExpression_to_evaluate = peek('EXPRESSION') // ex: "Sum({$&amp;lt;BOOL = {'1'}&amp;gt;}SALES)"&lt;BR /&gt;&lt;BR /&gt;in Set Analysis (fx) window :&amp;nbsp;&lt;BR /&gt;=$(vExpression_to_evaluate); // Is this possible ?&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;Any idea how to proceed ?&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Peter&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Mar 2024 22:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-evaluation-from-string/m-p/2430545#M96540</guid>
      <dc:creator>Peter_QS</dc:creator>
      <dc:date>2024-03-13T22:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis evaluation from string</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-evaluation-from-string/m-p/2430556#M96541</link>
      <description>&lt;P&gt;I'm not sure about what you are trying to achieve here, is it just a matter of storing expressions in a table in the load script and utilizing them in the charts ?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 23:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-evaluation-from-string/m-p/2430556#M96541</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2024-03-13T23:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis evaluation from string</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-evaluation-from-string/m-p/2430558#M96542</link>
      <description>&lt;P&gt;To apply expressions on the front end, you don't need to put them into variables, just use the Dollar sign expansion with an = sign to evaluate the expression&lt;/P&gt;
&lt;P&gt;eg. $(=Only({&amp;lt;&lt;SPAN&gt;ID_EXPRESSION={n}&lt;/SPAN&gt;&amp;gt;}&lt;SPAN&gt;EXPRESSION))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 00:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-evaluation-from-string/m-p/2430558#M96542</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2024-03-14T00:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis evaluation from string</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-evaluation-from-string/m-p/2430569#M96543</link>
      <description>&lt;P&gt;Perhaps its meant to store the expression outside of a single app and re-use it in multiple apps?&lt;/P&gt;
&lt;P&gt;If that is the case I think there should be a way.&lt;/P&gt;
&lt;P&gt;Does it work if you test a valid set analysis expression without single quotes?&amp;nbsp; I would test that first. If it does work without single quotes but fails with single quotes, you might need to find a way to properly escape the single quotes by adding a preceding single quote to each single quote&lt;/P&gt;
&lt;P&gt;replace($(vExpression_to_evaluate), chr(39), chr(39) &amp;amp; Chr(39))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More on this here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Design/Escape-sequences/ba-p/1469770" target="_blank"&gt;https://community.qlik.com/t5/Design/Escape-sequences/ba-p/1469770&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 01:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-evaluation-from-string/m-p/2430569#M96543</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2024-03-14T01:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis evaluation from string</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-evaluation-from-string/m-p/2430897#M96581</link>
      <description>&lt;P&gt;Thank you all for your answers&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 15:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-evaluation-from-string/m-p/2430897#M96581</guid>
      <dc:creator>Peter_QS</dc:creator>
      <dc:date>2024-03-14T15:53:07Z</dc:date>
    </item>
  </channel>
</rss>

