<?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 condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342885#M821603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe try Pick(Wildmatch()) combination?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2017 10:09:16 GMT</pubDate>
    <dc:creator>tomasz_tru</dc:creator>
    <dc:date>2017-08-03T10:09:16Z</dc:date>
    <item>
      <title>Nested If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342884#M821602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I have two fields and I am calculating GMT with the following command&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;StartTimeReportUserTimeZone,,&lt;/P&gt;&lt;P&gt;StartTimeReport,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time#(interval(time(StartTimeReportUserTimeZone, 'hh:mm') - time(StartTimeReport, 'hh:mm'), 'h:mm'),'h:mm') as GMTID&lt;/P&gt;&lt;P&gt;from table1;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD *,&lt;/P&gt;&lt;P&gt;if(GMTID='1:00','London',if(GMTID='2:00', 'Europe',if(GMTID='5:30','India', if(GMTID='8:00', 'Hongkong' ,if(GMTID='-4:00', 'Canada','NA'))))) as Location&lt;/P&gt;&lt;P&gt;resident table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problem is when the value is -4:00 the location Cananda is not showing .&lt;/P&gt;&lt;P&gt;is something problematic where I am calculating GMTID. for all other values it is working fine.&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342884#M821602</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342885#M821603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe try Pick(Wildmatch()) combination?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342885#M821603</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2017-08-03T10:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342886#M821604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(GMTID='1:00','London',if(GMTID='2:00', 'Europe',if(GMTID='5:30','India', if(GMTID='8:00', 'Hongkong' ,if(&lt;STRONG&gt;Fabs(GMTID)='4:00'&lt;/STRONG&gt;, 'Canada','NA'))))) as Location&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident table1;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This should work, But not exactly rule of the scenario. Will you provide sample ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342886#M821604</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-03T10:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342887#M821605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try here fabs&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;,if(fabs(GMTID='-4:00', &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342887#M821605</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2017-08-03T10:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342888#M821606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342888#M821606</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2017-08-03T10:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342889#M821607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it is not time you can try below way &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=IF(Column(1)&amp;lt;0 and Column(2)&amp;lt;0,(Column(1)/Colu&lt;STRONG&gt;mn(2))*-1&lt;/STRONG&gt;,(Column(1)/Column(2)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342889#M821607</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2017-08-03T10:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342890#M821608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope , it did not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 11:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342890#M821608</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2017-08-03T11:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342891#M821609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 11:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342891#M821609</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2017-08-03T11:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342892#M821610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, it worked, is it a good idea to do wildmatch here since I am matching GMT value? please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 11:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-condition/m-p/1342892#M821610</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2017-08-03T11:58:57Z</dc:date>
    </item>
  </channel>
</rss>

