<?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 Need logic help to write nested if condition. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-logic-help-to-write-nested-if-condition/m-p/1291509#M849397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In Attached data need logic help to write the nested if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need only the rows with below mention condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;1)&lt;/STRONG&gt; [Location Code]=209931 and [Entry Type]=0 and left([Gen_ Bus_ Posting Group],4)='VEND' and [Quantity]&amp;gt;0&amp;nbsp; as Purchase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;[Location Code]=209931 and [Entry Type]=0 and left([Gen_ Bus_ Posting Group],4)='&lt;SPAN style="font-size: 13.3333px;"&gt;VEND&lt;/SPAN&gt;' and [Quantity]&amp;lt;0 as &lt;SPAN style="font-size: 13.3333px;"&gt;Purchase&lt;/SPAN&gt;Return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;2)&lt;/STRONG&gt; Location Code :- GC/SR/016 and &lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=4&lt;/SPAN&gt; and [ReceiptFROM]=209910,RECD-M,DTG-SYMP,SYMP,HARMONY-M,MFG-EMB,209920,209932,GC/WH/50,209915 and &lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;gt;0&lt;/SPAN&gt; as &lt;SPAN style="font-size: 13.3333px;"&gt;Purchase&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Location Code :- GC/SR/016 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=4&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and [ReceiptFROM]=209910,RECD-M,DTG-SYMP,SYMP,HARMONY-M,MFG-EMB,209920,209932,GC/WH/50,209915 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;lt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; as &lt;SPAN style="font-size: 13.3333px;"&gt;Purchase&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Return&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;3)&lt;/STRONG&gt;&lt;/SPAN&gt; Location Code :- 209910 and &lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=0&lt;/SPAN&gt; and &lt;SPAN style="font-size: 13.3333px;"&gt;left([Gen_ Bus_ Posting Group],2)&amp;lt;&amp;gt;'IN' and &lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;gt;0&amp;nbsp; as Purchase&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Location Code :- 209910 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=0&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;left([Gen_ Bus_ Posting Group],2)&amp;lt;&amp;gt;'IN' and &lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;lt;0&amp;nbsp; as &lt;SPAN style="font-size: 13.3333px;"&gt;Purchase&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Return&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Location Code :- 209910 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=0&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;left([Gen_ Bus_ Posting Group],2)='IN' and &lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;gt;0&amp;nbsp; as INWARD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Location Code :- 209910 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=0&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;left([Gen_ Bus_ Posting Group],2)&amp;lt;'IN' and &lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;lt;0&amp;nbsp; as OUTWARD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>lalitkgehlot89</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Need logic help to write nested if condition.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-logic-help-to-write-nested-if-condition/m-p/1291509#M849397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In Attached data need logic help to write the nested if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need only the rows with below mention condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;1)&lt;/STRONG&gt; [Location Code]=209931 and [Entry Type]=0 and left([Gen_ Bus_ Posting Group],4)='VEND' and [Quantity]&amp;gt;0&amp;nbsp; as Purchase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;[Location Code]=209931 and [Entry Type]=0 and left([Gen_ Bus_ Posting Group],4)='&lt;SPAN style="font-size: 13.3333px;"&gt;VEND&lt;/SPAN&gt;' and [Quantity]&amp;lt;0 as &lt;SPAN style="font-size: 13.3333px;"&gt;Purchase&lt;/SPAN&gt;Return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;2)&lt;/STRONG&gt; Location Code :- GC/SR/016 and &lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=4&lt;/SPAN&gt; and [ReceiptFROM]=209910,RECD-M,DTG-SYMP,SYMP,HARMONY-M,MFG-EMB,209920,209932,GC/WH/50,209915 and &lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;gt;0&lt;/SPAN&gt; as &lt;SPAN style="font-size: 13.3333px;"&gt;Purchase&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Location Code :- GC/SR/016 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=4&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and [ReceiptFROM]=209910,RECD-M,DTG-SYMP,SYMP,HARMONY-M,MFG-EMB,209920,209932,GC/WH/50,209915 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;lt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; as &lt;SPAN style="font-size: 13.3333px;"&gt;Purchase&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Return&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;3)&lt;/STRONG&gt;&lt;/SPAN&gt; Location Code :- 209910 and &lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=0&lt;/SPAN&gt; and &lt;SPAN style="font-size: 13.3333px;"&gt;left([Gen_ Bus_ Posting Group],2)&amp;lt;&amp;gt;'IN' and &lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;gt;0&amp;nbsp; as Purchase&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Location Code :- 209910 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=0&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;left([Gen_ Bus_ Posting Group],2)&amp;lt;&amp;gt;'IN' and &lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;lt;0&amp;nbsp; as &lt;SPAN style="font-size: 13.3333px;"&gt;Purchase&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Return&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Location Code :- 209910 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=0&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;left([Gen_ Bus_ Posting Group],2)='IN' and &lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;gt;0&amp;nbsp; as INWARD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Location Code :- 209910 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Entry Type]=0&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;left([Gen_ Bus_ Posting Group],2)&amp;lt;'IN' and &lt;SPAN style="font-size: 13.3333px;"&gt;[Quantity]&amp;lt;0&amp;nbsp; as OUTWARD&lt;/SPAN&gt;&lt;/SPAN&gt;&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/Need-logic-help-to-write-nested-if-condition/m-p/1291509#M849397</guid>
      <dc:creator>lalitkgehlot89</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need logic help to write nested if condition.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-logic-help-to-write-nested-if-condition/m-p/1291510#M849398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally I would add these as columns in the load script rather than trying to do it in the front end..&lt;/P&gt;&lt;P&gt;but either way just do if() + if() + if()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so:&lt;/P&gt;&lt;P&gt;If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Location Code]=209931 and [Entry Type]=0 and left([Gen_ Bus_ Posting Group],4)='VEND' and [Quantity]&amp;gt;0, sum(yourfield),0)&lt;/SPAN&gt;&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;+&lt;/SPAN&gt;&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(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Location Code]=&lt;/SPAN&gt;'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;GC/SR/016' and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Entry Type]=4&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; and [ReceiptFROM]=209910,RECD-M,DTG-SYMP,SYMP,HARMONY-M,MFG-EMB,209920,209932,GC/WH/50,209915 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Quantity]&amp;gt;0&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, sum(yourfield),0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Location Code]=&lt;/SPAN&gt;209910 and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Entry Type]=0&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;left([Gen_ Bus_ Posting Group],2)&amp;lt;&amp;gt;'IN' and &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[Quantity]&amp;gt;0&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, sum(yourfield),0)&lt;/SPAN&gt;&amp;nbsp; as Purchase&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 08:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-logic-help-to-write-nested-if-condition/m-p/1291510#M849398</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-15T08:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need logic help to write nested if condition.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-logic-help-to-write-nested-if-condition/m-p/1291511#M849399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;I want to create the field on backend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 08:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-logic-help-to-write-nested-if-condition/m-p/1291511#M849399</guid>
      <dc:creator>lalitkgehlot89</dc:creator>
      <dc:date>2017-03-15T08:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need logic help to write nested if condition.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-logic-help-to-write-nested-if-condition/m-p/1291512#M849400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep so just write that as a preceeding load in your script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 08:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-logic-help-to-write-nested-if-condition/m-p/1291512#M849400</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-15T08:37:36Z</dc:date>
    </item>
  </channel>
</rss>

