<?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 Join 2 if statements in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-2-if-statements-in-expression/m-p/1583603#M740989</link>
    <description>&lt;P&gt;I have two if statements in one expression, each works by itself but don't work when combined. I have similar expressions that work just fine by joining the 2 if statements with a +,&amp;nbsp; e.g.&lt;/P&gt;&lt;P&gt;if(Quarter='Q4 CY 2018',Sum(Aggr(if(TransMonth='Oct',1-(IssuesPOs/TotalPOs),0), TransMonth)),Sum(Aggr(if(TransMonth='Jul',1-(IssuesPOs/TotalPOs),0), TransMonth)))+&lt;BR /&gt;if(Quarter='Q1 CY 2019',Sum(Aggr(if(TransMonth='Jan',1-(IssuesPOs/TotalPOs),0), TransMonth)),Sum(Aggr(if(TransMonth='Oct',1-(IssuesPOs/TotalPOs),0), TransMonth)))&lt;/P&gt;&lt;P&gt;But the one below doesn't work even though it says expression OK:&lt;/P&gt;&lt;P&gt;IF(Quarter='Q4 CY 2018',Avg({&amp;lt;TransMonth = {'Oct'}&amp;gt;}CEScore),Avg({&amp;lt;TransMonth = {'Jul'}&amp;gt;}CEScore))+&lt;BR /&gt;IF(Quarter='Q1 CY 2019',Avg({&amp;lt;TransMonth = {'Jan'}&amp;gt;}CEScore),Avg({&amp;lt;TransMonth = {'Oct'}&amp;gt;}CEScore))&lt;/P&gt;&lt;P&gt;I have tried using&amp;nbsp; a comma instead of the plus sign and tried different things but nothing works but each if statement works fine on it's own. Help would be very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:30:19 GMT</pubDate>
    <dc:creator>ashokunbi</dc:creator>
    <dc:date>2024-11-16T03:30:19Z</dc:date>
    <item>
      <title>Join 2 if statements in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-if-statements-in-expression/m-p/1583603#M740989</link>
      <description>&lt;P&gt;I have two if statements in one expression, each works by itself but don't work when combined. I have similar expressions that work just fine by joining the 2 if statements with a +,&amp;nbsp; e.g.&lt;/P&gt;&lt;P&gt;if(Quarter='Q4 CY 2018',Sum(Aggr(if(TransMonth='Oct',1-(IssuesPOs/TotalPOs),0), TransMonth)),Sum(Aggr(if(TransMonth='Jul',1-(IssuesPOs/TotalPOs),0), TransMonth)))+&lt;BR /&gt;if(Quarter='Q1 CY 2019',Sum(Aggr(if(TransMonth='Jan',1-(IssuesPOs/TotalPOs),0), TransMonth)),Sum(Aggr(if(TransMonth='Oct',1-(IssuesPOs/TotalPOs),0), TransMonth)))&lt;/P&gt;&lt;P&gt;But the one below doesn't work even though it says expression OK:&lt;/P&gt;&lt;P&gt;IF(Quarter='Q4 CY 2018',Avg({&amp;lt;TransMonth = {'Oct'}&amp;gt;}CEScore),Avg({&amp;lt;TransMonth = {'Jul'}&amp;gt;}CEScore))+&lt;BR /&gt;IF(Quarter='Q1 CY 2019',Avg({&amp;lt;TransMonth = {'Jan'}&amp;gt;}CEScore),Avg({&amp;lt;TransMonth = {'Oct'}&amp;gt;}CEScore))&lt;/P&gt;&lt;P&gt;I have tried using&amp;nbsp; a comma instead of the plus sign and tried different things but nothing works but each if statement works fine on it's own. Help would be very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-if-statements-in-expression/m-p/1583603#M740989</guid>
      <dc:creator>ashokunbi</dc:creator>
      <dc:date>2024-11-16T03:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 if statements in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-if-statements-in-expression/m-p/1587955#M740990</link>
      <description>Hello!&lt;BR /&gt;Try to cover each IF in dollar-sign-parentheses, it will calculate each one into a value and then you should get a sum of them. Like this:&lt;BR /&gt;$(=IF(Quarter='Q4 CY 2018',Avg({&amp;lt;TransMonth = {'Oct'}&amp;gt;}CEScore),Avg({&amp;lt;TransMonth = {'Jul'}&amp;gt;}CEScore)))&lt;BR /&gt;+&lt;BR /&gt;$(=IF(Quarter='Q1 CY 2019',Avg({&amp;lt;TransMonth = {'Jan'}&amp;gt;}CEScore),Avg({&amp;lt;TransMonth = {'Oct'}&amp;gt;}CEScore)))</description>
      <pubDate>Tue, 04 Jun 2019 08:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-if-statements-in-expression/m-p/1587955#M740990</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2019-06-04T08:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 if statements in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Join-2-if-statements-in-expression/m-p/1587965#M740991</link>
      <description>Can be more specific about meaning of not working?&lt;BR /&gt;Is it giving you wrong output? or&lt;BR /&gt;Not giving you any output at all?&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Jun 2019 08:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-2-if-statements-in-expression/m-p/1587965#M740991</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-06-04T08:54:44Z</dc:date>
    </item>
  </channel>
</rss>

