<?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: Replace if statement with set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Replace-if-statement-with-set-analysis/m-p/1582640#M42598</link>
    <description>&lt;P&gt;Thanks for the prompt reply.&lt;BR /&gt;Due to some restrictions, i cannot rename to associate these 2 fields together in data model. The logic can only be implemented via UI.&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 00:22:03 GMT</pubDate>
    <dc:creator>shirleyk</dc:creator>
    <dc:date>2019-05-22T00:22:03Z</dc:date>
    <item>
      <title>Replace if statement with set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Replace-if-statement-with-set-analysis/m-p/1582629#M42594</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have two isolated tables which contain a key logically link to each other (ID1 &amp;amp; ID2).&lt;/P&gt;&lt;P&gt;DataA:&lt;BR /&gt;Load * inline [&lt;BR /&gt;ID1, Value1&lt;BR /&gt;A, TestA&lt;BR /&gt;B, TestB&lt;BR /&gt;C, TestC&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;DataB:&lt;BR /&gt;Load * inline [&lt;BR /&gt;ID2, Value2&lt;BR /&gt;A, TestX&lt;BR /&gt;B, TestY&lt;BR /&gt;C, TestZ&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expected&amp;nbsp;result table is like this:&lt;/P&gt;&lt;P&gt;ID1&amp;nbsp; &amp;nbsp;Value1&amp;nbsp; &amp;nbsp;Value2&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TestA&amp;nbsp; &amp;nbsp; &amp;nbsp; TestX&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TestB&amp;nbsp; &amp;nbsp; &amp;nbsp; TestY&lt;/P&gt;&lt;P&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TestC&amp;nbsp; &amp;nbsp; &amp;nbsp; TestZ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can be done by using this expression in columne Value2.&lt;/P&gt;&lt;P&gt;=aggr(only(if (ID1=ID2, Value2)), ID1)&lt;/P&gt;&lt;P&gt;However, due to performance issue (actually no. of records is more than 10 thousands), may i know if it is possible to change the if statement to set analysis?&lt;/P&gt;&lt;P&gt;I have tired the followings but it only works when one ID1 is selected.&lt;/P&gt;&lt;P&gt;=aggr(only({$&amp;lt;ID2={'=ID1=ID2'}&amp;gt;} Value2), ID1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Shirley&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 09:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replace-if-statement-with-set-analysis/m-p/1582629#M42594</guid>
      <dc:creator>shirleyk</dc:creator>
      <dc:date>2019-05-21T09:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Replace if statement with set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Replace-if-statement-with-set-analysis/m-p/1582632#M42595</link>
      <description>ID2=p(ID1)</description>
      <pubDate>Tue, 21 May 2019 09:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replace-if-statement-with-set-analysis/m-p/1582632#M42595</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2019-05-21T09:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replace if statement with set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Replace-if-statement-with-set-analysis/m-p/1582633#M42596</link>
      <description>Rename field ID2 to ID1.</description>
      <pubDate>Tue, 21 May 2019 09:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replace-if-statement-with-set-analysis/m-p/1582633#M42596</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-05-21T09:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replace if statement with set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Replace-if-statement-with-set-analysis/m-p/1582640#M42598</link>
      <description>&lt;P&gt;Thanks for the prompt reply.&lt;BR /&gt;Due to some restrictions, i cannot rename to associate these 2 fields together in data model. The logic can only be implemented via UI.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 00:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replace-if-statement-with-set-analysis/m-p/1582640#M42598</guid>
      <dc:creator>shirleyk</dc:creator>
      <dc:date>2019-05-22T00:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Replace if statement with set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Replace-if-statement-with-set-analysis/m-p/1583009#M42618</link>
      <description>&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;Tried ID2=P(ID1), but seems still doesn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 00:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replace-if-statement-with-set-analysis/m-p/1583009#M42618</guid>
      <dc:creator>shirleyk</dc:creator>
      <dc:date>2019-05-22T00:27:20Z</dc:date>
    </item>
  </channel>
</rss>

