<?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: If statement grouping in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-statement-grouping/m-p/107483#M7337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2018 15:03:31 GMT</pubDate>
    <dc:creator>robin_heijt</dc:creator>
    <dc:date>2018-11-05T15:03:31Z</dc:date>
    <item>
      <title>If statement grouping</title>
      <link>https://community.qlik.com/t5/App-Development/If-statement-grouping/m-p/107481#M7335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a field for section access based on Bands.&lt;/P&gt;&lt;P&gt;These bands are: I, II, III, IV, V, VI, VII, ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want the field to calculate the following:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15414232865786650 jive_text_macro" jivemacro_uid="_15414232865786650"&gt;
&lt;P&gt; if("Band Unified"='III', 'III-ALL',&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp; if("Band Unified"='IV', 'III-ALL',&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp; if("Band Unified"='V', 'III-ALL',&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp; if("Band Unified"='VI', 'III-ALL',&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp; if("Band Unified"='VII', 'III-ALL',&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp; if("Band Unified"='ALL', 'III-ALL',&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp; if("Band Unified"='V', 'V-ALL',&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp; if("Band Unified"='VI', 'V-ALL',&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp; if("Band Unified"='VII', 'V-ALL',&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;&amp;nbsp; if("Band Unified"='ALL', 'V-ALL', 'Other')))))))))) as BANDSECURITY;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loaded, Qlik Sense will only show the III-ALL string, and not the V-ALL string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I have to make my code to have both strings in my field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 13:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-statement-grouping/m-p/107481#M7335</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-11-05T13:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: If statement grouping</title>
      <link>https://community.qlik.com/t5/App-Development/If-statement-grouping/m-p/107482#M7336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because once a condition is met, the if statement won't go any forward.... for example when "Band Unified" = 'V', then as soon as it equal to 'V' the first time... it will get 'III-ALL'... it won't need to go forward to get to 'V-ALL'. May be you need this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ...,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if("Band Unified"='III', 'III-ALL',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if("Band Unified"='IV', 'III-ALL',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if("Band Unified"='V', 'III-ALL',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if("Band Unified"='VI', 'III-ALL',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if("Band Unified"='VII', 'III-ALL',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if("Band Unified"='ALL', 'III-ALL', 'Other')))))) as BANDSECURITY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ..., &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if("Band Unified"='V', 'V-ALL',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if("Band Unified"='VI', 'V-ALL',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if("Band Unified"='VII', 'V-ALL',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if("Band Unified"='ALL', 'V-ALL',&amp;nbsp; 'Other')))) as BANDSECURITY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 13:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-statement-grouping/m-p/107482#M7336</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-05T13:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: If statement grouping</title>
      <link>https://community.qlik.com/t5/App-Development/If-statement-grouping/m-p/107483#M7337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-statement-grouping/m-p/107483#M7337</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-11-05T15:03:31Z</dc:date>
    </item>
  </channel>
</rss>

