<?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 If logic help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-logic-help/m-p/1553751#M743183</link>
    <description>&lt;P&gt;Hi Experts,&lt;BR /&gt;Can any one please help me on below requirement.&lt;BR /&gt;I have an Average Net Amount expression like below here I am dividing the Sum of Net Amount by Number of Repairs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Sum(Aggr(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;(Sum({&amp;lt;[Date]={"&amp;gt;=$(=addmonths(today(),-12))"},[Type]={'Level1'},[ Name]={'AA','BB','CC','DD'}&amp;gt;}[Net Amount])&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;/&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Count({&amp;lt;&lt;SPAN&gt;[Date]={"&amp;gt;=$(=addmonths(today(),-12))"},[Type]={'Level1'},[ Name]={'AA','BB','CC','DD'}&lt;/SPAN&gt;&amp;gt;}distinct[Repairs])&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;),[MonthYear]))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here requirement is&lt;BR /&gt;when [Status] = Completed then don't add any VAT on [Net Amount] need to consider the actual amount like&lt;SPAN&gt;(Sum({&amp;lt;[Date]={"&amp;gt;=$(=addmonths(today(),-12))"},[Type]={'Level1'},[ Name]={'AA','BB','CC','DD'}&amp;gt;}[Net Amount])&lt;/SPAN&gt; but&lt;BR /&gt;when [Status] = Not Completed then need to increase 30% on Net Amount value&lt;BR /&gt;Please help me to write the logic.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>mahitham</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>If logic help</title>
      <link>https://community.qlik.com/t5/QlikView/If-logic-help/m-p/1553751#M743183</link>
      <description>&lt;P&gt;Hi Experts,&lt;BR /&gt;Can any one please help me on below requirement.&lt;BR /&gt;I have an Average Net Amount expression like below here I am dividing the Sum of Net Amount by Number of Repairs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Sum(Aggr(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;(Sum({&amp;lt;[Date]={"&amp;gt;=$(=addmonths(today(),-12))"},[Type]={'Level1'},[ Name]={'AA','BB','CC','DD'}&amp;gt;}[Net Amount])&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;/&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Count({&amp;lt;&lt;SPAN&gt;[Date]={"&amp;gt;=$(=addmonths(today(),-12))"},[Type]={'Level1'},[ Name]={'AA','BB','CC','DD'}&lt;/SPAN&gt;&amp;gt;}distinct[Repairs])&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;),[MonthYear]))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here requirement is&lt;BR /&gt;when [Status] = Completed then don't add any VAT on [Net Amount] need to consider the actual amount like&lt;SPAN&gt;(Sum({&amp;lt;[Date]={"&amp;gt;=$(=addmonths(today(),-12))"},[Type]={'Level1'},[ Name]={'AA','BB','CC','DD'}&amp;gt;}[Net Amount])&lt;/SPAN&gt; but&lt;BR /&gt;when [Status] = Not Completed then need to increase 30% on Net Amount value&lt;BR /&gt;Please help me to write the logic.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-logic-help/m-p/1553751#M743183</guid>
      <dc:creator>mahitham</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If logic help</title>
      <link>https://community.qlik.com/t5/QlikView/If-logic-help/m-p/1554047#M743184</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;May be this:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Sum(Aggr(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;(Sum({&amp;lt;[Date]={"&amp;gt;=$(=addmonths(today(),-12))"},[Type]={'Level1'},[ Name]={'AA','BB','CC','DD'}&amp;gt;} &lt;FONT color="#000080"&gt;&lt;FONT color="#008000"&gt;If(&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#008000"&gt;[Status] = 'Not Completed', 1.3, 1) *&lt;/FONT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;[Net Amount])&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;/&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Count({&amp;lt;&lt;SPAN&gt;[Date]={"&amp;gt;=$(=addmonths(today(),-12))"},[Type]={'Level1'},[ Name]={'AA','BB','CC','DD'}&lt;/SPAN&gt;&amp;gt;}distinct[Repairs])&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;),[MonthYear]))&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 09:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-logic-help/m-p/1554047#M743184</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2019-03-08T09:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: If logic help</title>
      <link>https://community.qlik.com/t5/QlikView/If-logic-help/m-p/1554048#M743185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1645"&gt;@rahulpawarb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please explain why 1.3 is considered. I assume for 30% need to multiply with 0.03.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 09:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-logic-help/m-p/1554048#M743185</guid>
      <dc:creator>mahitham</dc:creator>
      <dc:date>2019-03-08T09:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: If logic help</title>
      <link>https://community.qlik.com/t5/QlikView/If-logic-help/m-p/1554054#M743186</link>
      <description>For example, Net Amount is 1,000 and Status is Not Completed then amount should be 1,300:&lt;BR /&gt;//Solution 1&lt;BR /&gt;=1,000 + (1,000*0.3)&lt;BR /&gt;//Solution 2&lt;BR /&gt;=1,000 * 1.3&lt;BR /&gt;&lt;BR /&gt;Both the expression will return same result.&lt;BR /&gt;&lt;BR /&gt;Hope this will help.</description>
      <pubDate>Fri, 08 Mar 2019 09:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-logic-help/m-p/1554054#M743186</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2019-03-08T09:43:13Z</dc:date>
    </item>
  </channel>
</rss>

