<?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: Evaluating expressions saved in a table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2052256#M86503</link>
    <description>&lt;P&gt;Maybe this is an approach that you can use ...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Design/Qlik-Sense-Custom-Report/ba-p/1471797" target="_blank"&gt;https://community.qlik.com/t5/Design/Qlik-Sense-Custom-Report/ba-p/1471797&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 01:02:07 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2023-03-23T01:02:07Z</dc:date>
    <item>
      <title>Evaluating expressions saved in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2051667#M86459</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;got 2 tables T1, and T2&lt;BR /&gt;T1 has two fields called NAME and Expression&lt;BR /&gt;under NAME there are names of fields in another table:&lt;BR /&gt;NAME&amp;nbsp; &amp;nbsp; Expression&lt;BR /&gt;-------------------------&lt;BR /&gt;sales&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum(sales)&lt;BR /&gt;returns&amp;nbsp; &amp;nbsp; sum({&amp;lt;product={P1,P2}&amp;gt;}returns)&lt;BR /&gt;&lt;BR /&gt;in T2 there are 2 fields named sales, and returns along with other fields&lt;BR /&gt;what I want to accomplish in a table is the following:&lt;BR /&gt;add dimension NAME, Expression, and Measure&lt;BR /&gt;so the output would be:&lt;BR /&gt;SALES, SUM(SALES), 123456&lt;BR /&gt;RETURNS, sum({&amp;lt;product={P1,P2}&amp;gt;}returns), -456732&lt;/P&gt;
&lt;P&gt;Kindly advise on how to accomplish this&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 15:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2051667#M86459</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2023-03-21T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expressions saved in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2051802#M86472</link>
      <description>&lt;P&gt;You can calculate this in a KPI like this:&lt;/P&gt;
&lt;P&gt;returns&lt;BR /&gt;=$(=Only({&amp;lt;NAME={returns}&amp;gt;}Expression))&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 23:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2051802#M86472</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2023-03-21T23:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expressions saved in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2052018#M86487</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5905"&gt;@Lisa_P&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;thank you for your reply&lt;BR /&gt;but this only evaluates one expression&lt;BR /&gt;what&amp;nbsp; I want is to evalute each expression as I put them in a table&lt;BR /&gt;so each row should give me a number next to each NAME&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 12:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2052018#M86487</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2023-03-22T12:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expressions saved in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2052047#M86488</link>
      <description>&lt;P&gt;Such approach isn't possible because your expression remains a string and won't be evaluated (unless with the above shown $-sign expansion which creates an adhoc-variable for just a single value/expression).&lt;/P&gt;
&lt;P&gt;The only way to apply different expressions for each row is the use of a conditional logic like:&lt;/P&gt;
&lt;P&gt;pick(match(Name, 'x', 'y', 'z'), sum(Field), avg(Field),max(Field))&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 13:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2052047#M86488</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-22T13:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expressions saved in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2052116#M86494</link>
      <description>&lt;P&gt;this approach only evaluates on expression&lt;BR /&gt;Field&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Expression&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;value&lt;BR /&gt;Field1&amp;nbsp; &amp;nbsp; &amp;nbsp; max(Field1)&amp;nbsp; &amp;nbsp; &amp;nbsp;800&lt;BR /&gt;Field2&amp;nbsp; &amp;nbsp; &amp;nbsp; sum(Field2)&amp;nbsp; &amp;nbsp; &amp;nbsp;1500&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;I have Field and Expression in the schema&lt;BR /&gt;next to each Field and Expression I want to compute / evaluate the Expression and display the value&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 15:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2052116#M86494</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2023-03-22T15:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expressions saved in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2052141#M86496</link>
      <description>&lt;P&gt;it's just an example to show the needed logic for such an object. Most users which want to apply such an approach just use it like above by writing the dimension-value to expression matching manually. It's quite simply and will work well - unless by larger data-sets because it's the opposite of an optimized way to calculate data.&lt;/P&gt;
&lt;P&gt;Nevertheless this doesn't mean that the dimensions and expressions couldn't be maintained within a table - but like mentioned you couldn't use it directly else you would need to aggregate the dimensions and also the expressions per concat() within single strings which could be afterwards evaluated with the above shown $-sign expansion. It's not trivial because you need to synchronize both listings - maybe with a rowno() in the load as sorting-parameter - and probably more tricky to consider the various kinds of quotes and brackets within the multiple list-values and by aggregating them and calling the resulting adhoc-variables.&lt;/P&gt;
&lt;P&gt;IMO it's a rather bad way to design UI views and I couldn't recommend it - even if it's technically possible.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 15:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2052141#M86496</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-22T15:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expressions saved in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2052256#M86503</link>
      <description>&lt;P&gt;Maybe this is an approach that you can use ...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Design/Qlik-Sense-Custom-Report/ba-p/1471797" target="_blank"&gt;https://community.qlik.com/t5/Design/Qlik-Sense-Custom-Report/ba-p/1471797&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 01:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Evaluating-expressions-saved-in-a-table/m-p/2052256#M86503</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2023-03-23T01:02:07Z</dc:date>
    </item>
  </channel>
</rss>

