<?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 Error in Dual If logic in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Error-in-Dual-If-logic/m-p/2034520#M85252</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Need to change the KPI values in the dashboard where I am using the below logic for multiple time periods, which gives me a calculation error. Can you please help me here where actually I am going wrong.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;sum(IF(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='YTD' and [SALE_DATAMART-1.R17W]='Y',VALUES))-(sum(if(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='YTD' and PREV_R17W='Y',VALUES)))&lt;/P&gt;
&lt;P&gt;/sum(if(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='YTD' AND PREV_R17W='Y',VALUES,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;sum(IF(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='TTD' and [SALE_DATAMART-1.R17W]='Y',VALUES))-(sum(if(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='TTD' and PREV_R17W='Y',VALUES)))&lt;/P&gt;
&lt;P&gt;/sum(if(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='TTD' AND PREV_R17W='Y',VALUES))&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 15:29:52 GMT</pubDate>
    <dc:creator>Ankit3</dc:creator>
    <dc:date>2023-02-06T15:29:52Z</dc:date>
    <item>
      <title>Error in Dual If logic</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-Dual-If-logic/m-p/2034520#M85252</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Need to change the KPI values in the dashboard where I am using the below logic for multiple time periods, which gives me a calculation error. Can you please help me here where actually I am going wrong.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;sum(IF(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='YTD' and [SALE_DATAMART-1.R17W]='Y',VALUES))-(sum(if(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='YTD' and PREV_R17W='Y',VALUES)))&lt;/P&gt;
&lt;P&gt;/sum(if(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='YTD' AND PREV_R17W='Y',VALUES,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;sum(IF(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='TTD' and [SALE_DATAMART-1.R17W]='Y',VALUES))-(sum(if(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='TTD' and PREV_R17W='Y',VALUES)))&lt;/P&gt;
&lt;P&gt;/sum(if(&lt;STRONG&gt;TIME_BUCKET&lt;/STRONG&gt;='TTD' AND PREV_R17W='Y',VALUES))&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-Dual-If-logic/m-p/2034520#M85252</guid>
      <dc:creator>Ankit3</dc:creator>
      <dc:date>2023-02-06T15:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Dual If logic</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-Dual-If-logic/m-p/2034678#M85278</link>
      <description>&lt;P&gt;You seem to be missing at least two closing parens on the second line. Even then it would not be correct because you have two separate expressions.&amp;nbsp; Is it that you want one calculation for YTD and another for TTD?&lt;/P&gt;
&lt;P&gt;Is TIME_BUCKET a dimension in your chart?&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 23:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-Dual-If-logic/m-p/2034678#M85278</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-02-06T23:59:12Z</dc:date>
    </item>
  </channel>
</rss>

