<?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: How to write if condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101629#M917697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed. The solution to your current post doesn't need two conditions. It can be resolved using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.33px; font-family: 'courier new', courier;"&gt;=IF (NOT IsNull(ProformaParent), Sum(split * total_amount_fct) / 100)&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: 13.33px;"&gt;&lt;BR /&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: 13.33px;"&gt;Can you rewrite your OP to make it more clear what you're after? Thanks.&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: 13.33px;"&gt;&lt;BR /&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: 13.33px;"&gt;Peter&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2016 08:25:15 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-05-09T08:25:15Z</dc:date>
    <item>
      <title>How to write if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101622#M917690</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;how to fulfil two condition in same expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the table attached below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="P1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123922_P1.png" style="height: 78px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Expression which I am using for Amount LCY with split column is:-&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;&lt;SPAN style="font-size: 13.3333px;"&gt;=if(ProformaParent&amp;lt;&amp;gt;'NULL' and Split1=split ,sum(split*total_amount_fct)/100 ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(ProformaParent&amp;lt;&amp;gt;'NULL' and Split1&amp;lt;&amp;gt;split ,sum(split*total_amount_fct)/100 )&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;&lt;SPAN style="font-size: 13.3333px;"&gt;Requirement is if split1=split then this &lt;SPAN style="font-size: 13.3333px;"&gt;formula &lt;/SPAN&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;sum(split*total_amount_fct)/100&lt;/STRONG&gt; should apply, otherwise if split1&amp;lt;&amp;gt;split&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;then &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;sum(split*total_amount_fct)/100&lt;/STRONG&gt; formula should be applicable.&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;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried to do that, but at a time only one condition is fulfilling.&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;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&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/How-to-write-if-condition/m-p/1101622#M917690</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101623#M917691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For both the condition expressions is same (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;sum(split*total_amount_fct)/100&lt;/SPAN&gt;)? try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;if(ProformaParent&amp;lt;&amp;gt;'NULL' and (Split1=split or &lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;Split1&amp;lt;&amp;gt;split), &lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;sum(split*total_amount_fct)/100)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 07:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101623#M917691</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-09T07:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to write if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101624#M917692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SUM(IF(Not(IsNull(&lt;SPAN style="font-size: 13.3333px;"&gt;ProformaParent)),IF(&lt;SPAN style="font-size: 13.3333px;"&gt;split1&amp;lt;&amp;gt;split,&lt;SPAN style="font-size: 13.3333px;"&gt;sum(split1*total_amount_fct)/100,&lt;SPAN style="font-size: 13.3333px;"&gt;sum(split*total_amount_fct)/100))&lt;/SPAN&gt;&lt;/SPAN&gt;&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;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 07:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101624#M917692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-09T07:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to write if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101625#M917693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shikha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try below,&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if(ProformaParent&amp;lt;&amp;gt;NULL() and Split1=split ,sum(split*total_amount_fct)/100 ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;if(ProformaParent&amp;lt;&amp;gt;NULL() and Split1&amp;lt;&amp;gt;split ,sum(split*total_amount_fct)/100 ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;SK&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 07:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101625#M917693</guid>
      <dc:creator>santhosh_k_n</dc:creator>
      <dc:date>2016-05-09T07:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to write if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101626#M917694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sorry, my last expression is wrong:&lt;BR /&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;&lt;SPAN style="font-size: 13.3333px;"&gt;SUM(IF(Not(IsNull(&lt;SPAN style="font-size: 13.3333px;"&gt;ProformaParent)),IF(&lt;SPAN style="font-size: 13.3333px;"&gt;split1&amp;lt;&amp;gt;split,&lt;SPAN style="font-size: 13.3333px;"&gt;split1*total_amount_fct/100,&lt;SPAN style="font-size: 13.3333px;"&gt;split*total_amount_fct/100)))&lt;/SPAN&gt;&lt;/SPAN&gt;&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;&lt;SPAN style="font-size: 13.3333px;"&gt;We put IF conditions into sum expression to calculate the correct result on total rows.&lt;BR /&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;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 07:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101626#M917694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-09T07:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to write if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101627#M917695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-family: inherit; font-size: 13.33px; font-style: inherit; font-weight: inherit;"&gt;if(not isnull(ProformaParent) and Split1=split ,sum(split*total_amount_fct)/100 ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-family: inherit; font-size: 13.33px; font-style: inherit; font-weight: inherit;"&gt;if(not isnull(ProformaParent) and Split1&amp;lt;&amp;gt;split ,sum(split*total_amount_fct)/100 ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-family: inherit; font-size: 13.33px; font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 08:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101627#M917695</guid>
      <dc:creator>ankit777</dc:creator>
      <dc:date>2016-05-09T08:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101628#M917696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you need Split1 comparison condition, if you expect to display same expression in both the cases ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 08:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101628#M917696</guid>
      <dc:creator>pooja_sn</dc:creator>
      <dc:date>2016-05-09T08:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to write if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101629#M917697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed. The solution to your current post doesn't need two conditions. It can be resolved using this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.33px; font-family: 'courier new', courier;"&gt;=IF (NOT IsNull(ProformaParent), Sum(split * total_amount_fct) / 100)&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: 13.33px;"&gt;&lt;BR /&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: 13.33px;"&gt;Can you rewrite your OP to make it more clear what you're after? Thanks.&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: 13.33px;"&gt;&lt;BR /&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: 13.33px;"&gt;Peter&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 08:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-if-condition/m-p/1101629#M917697</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-05-09T08:25:15Z</dc:date>
    </item>
  </channel>
</rss>

