<?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: Nested if statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108851#M7455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That actually works too, now I am only left with the issue that I need all bands that are not I-VII to be named "ALL"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are randomly created band names, and therefore too many to manually assign to ALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I make Band I-VII show up like it is now in unified, and all other bands to show up as ALL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2018 08:51:37 GMT</pubDate>
    <dc:creator>robin_heijt</dc:creator>
    <dc:date>2018-08-22T08:51:37Z</dc:date>
    <item>
      <title>Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108849#M7453</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 am trying to create an if statement in my data load editor to combine different values under 1 dimesnion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As example (It is wrongly written): &lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; * ,IF([Band]="IA" or [Band]="I-A" or [Band]="IB" or [Band]="I-B"),"I",&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF([Band]="IIA" or [Band]="II-A" or [Band]="IIB" or [Band]="II-B"),"II",&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF([Band]="IIIA" or [Band]="III-A" or [Band]="IIIB" or [Band]="III-B"),"III",&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF([Band]="IVA" or [Band]="IV-A" or [Band]="IVB" or [Band]="IV-B"),"IV",&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF([Band]="VA" or [Band]="V-A" or [Band]="VB" or [Band]="V-B"),"V",&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF([Band]="VIA" or [Band]="VI-A" or [Band]="VIB" or [Band]="VI-B"),"VI",&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IF([Band]="VIIA" or [Band]="VII-A" or [Band]="VIIB" or [Band]="VII-B"),"VII", Else "ALL"))))))) as Band Unified;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 different values per unified band. I want them to become unified and every value that is not categorized in this list to be changed into ALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone that can help me out correct this code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 08:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108849#M7453</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-08-22T08:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108850#M7454</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;easiest is to use function purgechar() :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, purgechar(band,'-AB') as band_unified&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will be left : I, II,III, IV .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 08:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108850#M7454</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-08-22T08:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108851#M7455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That actually works too, now I am only left with the issue that I need all bands that are not I-VII to be named "ALL"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are randomly created band names, and therefore too many to manually assign to ALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I make Band I-VII show up like it is now in unified, and all other bands to show up as ALL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 08:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108851#M7455</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-08-22T08:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108852#M7456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, second step you can use match(&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(match(band,'I','II', ......, 'VII')&amp;gt;0, band, 'ALL') as ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 09:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108852#M7456</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-08-22T09:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108853#M7457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I am getting an error in the last bit of the string : ", band 'ALL') as [Band Unified];"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as error it says that the engine expects "THEN" instead of "," after the 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please advice on this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 09:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108853#M7457</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-08-22T09:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108854#M7458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with the first step it should be this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *, if(match(purgechar(band,'-AB'),'I','II', ......, 'VII')&amp;gt;0, purgechar(band,'-AB'), 'ALL') as band_unified&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 09:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108854#M7458</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-08-22T09:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statement</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108855#M7459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, that did the trick!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 09:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-if-statement/m-p/108855#M7459</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-08-22T09:57:32Z</dc:date>
    </item>
  </channel>
</rss>

