<?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 EXPRESSION LOGIC in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/SET-EXPRESSION-LOGIC/m-p/1995813#M82445</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use the code below&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF(COMP_LOGIC='DIVISION', NUM(AGGR(ABOVE(VALUE),COMP_LOGIC,NAME,VALUE)/AGGR(BELOW(VALUE),COMP_LOGIC,NAME,VALUE),'###%'),VALUE)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result.jpg" style="width: 437px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/91956i181A0DDDE8E76D8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="result.jpg" alt="result.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Oct 2022 07:08:20 GMT</pubDate>
    <dc:creator>ckarras22</dc:creator>
    <dc:date>2022-10-23T07:08:20Z</dc:date>
    <item>
      <title>SET EXPRESSION LOGIC</title>
      <link>https://community.qlik.com/t5/App-Development/SET-EXPRESSION-LOGIC/m-p/1995811#M82444</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have a table script which has 2 different computation logic:&lt;/P&gt;
&lt;P&gt;1. Direct: Here, I can get values for respective names&lt;/P&gt;
&lt;P&gt;2. Division: Names' value need to be calculated by dividing keys, here, I am getting issues.&lt;/P&gt;
&lt;P&gt;Kindly suggest how to proceed here. Note: Script can't be amended.&lt;/P&gt;
&lt;P&gt;Below is the sample input table &amp;amp; desired output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anku_1-1666501229678.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/91955i5ABC6C7862B745B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anku_1-1666501229678.png" alt="Anku_1-1666501229678.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note: For ease I have shown values column in input though it is in fact table.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 05:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-EXPRESSION-LOGIC/m-p/1995811#M82444</guid>
      <dc:creator>Anku</dc:creator>
      <dc:date>2022-10-23T05:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: SET EXPRESSION LOGIC</title>
      <link>https://community.qlik.com/t5/App-Development/SET-EXPRESSION-LOGIC/m-p/1995813#M82445</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use the code below&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF(COMP_LOGIC='DIVISION', NUM(AGGR(ABOVE(VALUE),COMP_LOGIC,NAME,VALUE)/AGGR(BELOW(VALUE),COMP_LOGIC,NAME,VALUE),'###%'),VALUE)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result.jpg" style="width: 437px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/91956i181A0DDDE8E76D8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="result.jpg" alt="result.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 07:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-EXPRESSION-LOGIC/m-p/1995813#M82445</guid>
      <dc:creator>ckarras22</dc:creator>
      <dc:date>2022-10-23T07:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: SET EXPRESSION LOGIC</title>
      <link>https://community.qlik.com/t5/App-Development/SET-EXPRESSION-LOGIC/m-p/1995827#M82446</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46706"&gt;@ckarras22&lt;/a&gt;&amp;nbsp;, no doubt above expression is working as expected to the dataset given however just an amd required (which is in point 2).&lt;/P&gt;
&lt;P&gt;I need your help for:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; My "value" column is a set expression, still they will work&amp;nbsp;inside agg(above(sum({$&amp;lt;conditions&amp;gt;}Values)….&lt;/P&gt;
&lt;P&gt;2. The dataset actually has Num,Denom values instead of division (as I was thinking "Key" column is more imp), refer below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anku_0-1666529561944.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/91959iDB02D4F598BE61BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anku_0-1666529561944.png" alt="Anku_0-1666529561944.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. Query: Name F is&amp;nbsp; a outcome of keys calculation ie 12/11 &amp;amp; Name G itself is key 11. So,&amp;nbsp; I think calculation made using keys will be more helpful,&amp;nbsp; what are your thoughts?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 12:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-EXPRESSION-LOGIC/m-p/1995827#M82446</guid>
      <dc:creator>Anku</dc:creator>
      <dc:date>2022-10-23T12:56:39Z</dc:date>
    </item>
  </channel>
</rss>

