<?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 nested statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502318#M187668</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 don't think you need to have a parentheseis around the 2nd IF Statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Al&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Nov 2013 14:11:38 GMT</pubDate>
    <dc:creator>rustyfishbones</dc:creator>
    <dc:date>2013-11-10T14:11:38Z</dc:date>
    <item>
      <title>if nested statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502315#M187665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i am trying to complete the following logic in my application.&lt;/P&gt;&lt;P&gt;however, either one statement works or the other but not together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the logic is that where one of the values is missing take the other. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works!&lt;/P&gt;&lt;P&gt;if([Master_Item.Product Group] ='x',[Product Group]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works!&lt;/P&gt;&lt;P&gt;if([Master_Item.Product Group] ='x',[Cost_Center_Mapping.Product Group])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does not work.&lt;/P&gt;&lt;P&gt;if([Master_Item.Product Group] ='x',[Product Group],&lt;/P&gt;&lt;P&gt;(if([Master_Item.Product Group] = 'x' and [Product Group] = '',&lt;/P&gt;&lt;P&gt;[Cost_Center_Mapping.Product Group])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is greatly appreciated. i have attached application for further analysis if needed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 19:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502315#M187665</guid>
      <dc:creator />
      <dc:date>2013-11-09T19:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: if nested statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502316#M187666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Master_Item.Product Group] ='x'&amp;nbsp; and [Product Group] &amp;lt;&amp;gt; '',[Product Group],&lt;/P&gt;&lt;P&gt;(if([Master_Item.Product Group] = 'x' and [Product Group] = '',&lt;/P&gt;&lt;P&gt;[Cost_Center_Mapping.Product Group])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I noticed that [Cost_Center_Mapping.Product Group] is null when any [Product Group is selected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 20:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502316#M187666</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-11-09T20:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: if nested statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502317#M187667</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;Try hereunder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Master_Item.Product Group] ='x',[Product Group],&lt;/P&gt;&lt;P&gt;if([Master_Item.Product Group] = 'x' and [Product Group] = '',&lt;/P&gt;&lt;P&gt;[Cost_Center_Mapping.Product Group], 'not found'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the syntax is ok. Not sure about your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 20:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502317#M187667</guid>
      <dc:creator />
      <dc:date>2013-11-09T20:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: if nested statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502318#M187668</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 don't think you need to have a parentheseis around the 2nd IF Statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Al&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 14:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502318#M187668</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-11-10T14:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: if nested statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502319#M187669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;try this one:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([Master_Item.Product Group] ='x',[Product Group],&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if([Master_Item.Product Group] = 'x' and [Product Group] = '',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Cost_Center_Mapping.Product Group], Null))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 14:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502319#M187669</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-11-10T14:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: if nested statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502320#M187670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Below one: Please use LEN function while comparing the space in the fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(LEN(TRIM([Product Group]) = 0 AND [Master_Item.Product Group] = 'x' , [Cost_Center_Mapping.Product Group] , &lt;/P&gt;&lt;P&gt;&amp;nbsp; IF ([Master_Item.Product Group] = 'x' , [Product Group] , 'Not Found')) AS FIELDNAME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 15:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-nested-statement/m-p/502320#M187670</guid>
      <dc:creator />
      <dc:date>2013-11-10T15:13:58Z</dc:date>
    </item>
  </channel>
</rss>

