<?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: Filter alternative without ifs in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-alternative-without-ifs/m-p/1971917#M80180</link>
    <description>&lt;P&gt;Table1:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;load * inline [
id, ind_Recognision, ind_Delete, ind_Return
A,	1,				0,			0
B,	1,				1,			0
C,	1,				1,			0
D,	0,				1,			0
E,	0,				1,			0
F,	0,				0,			1];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Load id, 'Recognition'&amp;nbsp; as Action&lt;/P&gt;
&lt;P&gt;Resident Table1&lt;/P&gt;
&lt;P&gt;Where ind_Return = 1;&lt;/P&gt;
&lt;P&gt;JOIN&lt;/P&gt;
&lt;P&gt;Load id, 'Delete' as Action&lt;/P&gt;
&lt;P&gt;Resident Table1&lt;/P&gt;
&lt;P&gt;Where ind_Delete = 1;&lt;/P&gt;
&lt;P&gt;JOIN&lt;/P&gt;
&lt;P&gt;Load id, 'Return' as Action&lt;/P&gt;
&lt;P&gt;Resident Table1&lt;/P&gt;
&lt;P&gt;Where ind_Recognision = 1;&lt;/P&gt;
&lt;P&gt;JOIN&lt;/P&gt;
&lt;P&gt;Load id, 'Other' as Action&lt;/P&gt;
&lt;P&gt;Resident Table1&lt;/P&gt;
&lt;P&gt;Where ind_Recognision = 0 AND ind_Delete = 0 and ind_Return = 0;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2022 12:51:11 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2022-08-23T12:51:11Z</dc:date>
    <item>
      <title>Filter alternative without ifs</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-alternative-without-ifs/m-p/1971912#M80179</link>
      <description>&lt;P&gt;Hi all, maybe someone could suggest a better idea how to create 'more correct' filter without ifs, because, let's say we have simple table with some indicators:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;load * inline [
id, ind_Recognision, ind_Delete, ind_Return
A,	1,				0,			0
B,	1,				1,			0
C,	1,				1,			0
D,	0,				1,			0
E,	0,				1,			0
F,	0,				0,			1];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I want to create a filter to know what 'action' (according indicators) were done, simplest way to do is using ifs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=IF(ind_Recognision=1, 'Recognition', if(ind_Delete=1, 'Delete', if(ind_Return=1, 'Return', 'Other')))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But here comes my problem, basically, ifs take only first value where expression is true. So if I choose 'Delete', I only see ids D and E, because B and C already treated as 'Recognition'.&lt;/P&gt;
&lt;P&gt;Is there a way to create a filter which take not 'first true value', but looks 'if one of' way? So if I choose 'Delete' I will see B, C, D, E ids.&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 12:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-alternative-without-ifs/m-p/1971912#M80179</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-08-23T12:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filter alternative without ifs</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-alternative-without-ifs/m-p/1971917#M80180</link>
      <description>&lt;P&gt;Table1:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;load * inline [
id, ind_Recognision, ind_Delete, ind_Return
A,	1,				0,			0
B,	1,				1,			0
C,	1,				1,			0
D,	0,				1,			0
E,	0,				1,			0
F,	0,				0,			1];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Load id, 'Recognition'&amp;nbsp; as Action&lt;/P&gt;
&lt;P&gt;Resident Table1&lt;/P&gt;
&lt;P&gt;Where ind_Return = 1;&lt;/P&gt;
&lt;P&gt;JOIN&lt;/P&gt;
&lt;P&gt;Load id, 'Delete' as Action&lt;/P&gt;
&lt;P&gt;Resident Table1&lt;/P&gt;
&lt;P&gt;Where ind_Delete = 1;&lt;/P&gt;
&lt;P&gt;JOIN&lt;/P&gt;
&lt;P&gt;Load id, 'Return' as Action&lt;/P&gt;
&lt;P&gt;Resident Table1&lt;/P&gt;
&lt;P&gt;Where ind_Recognision = 1;&lt;/P&gt;
&lt;P&gt;JOIN&lt;/P&gt;
&lt;P&gt;Load id, 'Other' as Action&lt;/P&gt;
&lt;P&gt;Resident Table1&lt;/P&gt;
&lt;P&gt;Where ind_Recognision = 0 AND ind_Delete = 0 and ind_Return = 0;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 12:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-alternative-without-ifs/m-p/1971917#M80180</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-08-23T12:51:11Z</dc:date>
    </item>
  </channel>
</rss>

