<?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 Ignore selection in IF statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Ignore-selection-in-IF-statement/m-p/1818126#M67034</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to sum value based on if statement i.e. if month is less than August then sum other wise "0". Following is what i am trying:&lt;/P&gt;&lt;P&gt;I have column of financial year (2017-2018, 2018-2019 etc.) and Month (01/04/2018,01/05/2018 et.) in my data along with Sale (Qty. in MT) column. Following is abstract of my data:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Group&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Financial Year&lt;/TD&gt;&lt;TD&gt;Sale&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-04-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-05-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-06-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-07-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-08-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-09-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-10-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to sum all qty. of months which are less than 01/08/2018. following is my formula:&lt;/P&gt;&lt;P&gt;if(Group='Production_Sales qty.',if(Month &amp;lt;= '01/08/2018',sum(Sale),0))&lt;/P&gt;&lt;P&gt;I have list box of Month, so when i select any month less than August 18 it gives answer for that particular month only&amp;nbsp; (i.e. 1000) but when no selection is done or month is selected which is greater than Aug 18 then it does not show anything.&lt;/P&gt;&lt;P&gt;What i want is when no selection is done or month less than August 18 or even greater month selection is done from Aug 18 then also it should show 5000 MT Qty. only.&lt;/P&gt;&lt;P&gt;Please help me out in this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Jun 2021 08:22:47 GMT</pubDate>
    <dc:creator>Learner</dc:creator>
    <dc:date>2021-06-27T08:22:47Z</dc:date>
    <item>
      <title>Ignore selection in IF statement</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-selection-in-IF-statement/m-p/1818126#M67034</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to sum value based on if statement i.e. if month is less than August then sum other wise "0". Following is what i am trying:&lt;/P&gt;&lt;P&gt;I have column of financial year (2017-2018, 2018-2019 etc.) and Month (01/04/2018,01/05/2018 et.) in my data along with Sale (Qty. in MT) column. Following is abstract of my data:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Group&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Financial Year&lt;/TD&gt;&lt;TD&gt;Sale&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-04-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-05-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-06-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-07-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-08-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-09-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production_Sales qty.&lt;/TD&gt;&lt;TD&gt;01-10-2018&lt;/TD&gt;&lt;TD&gt;2018-2019&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to sum all qty. of months which are less than 01/08/2018. following is my formula:&lt;/P&gt;&lt;P&gt;if(Group='Production_Sales qty.',if(Month &amp;lt;= '01/08/2018',sum(Sale),0))&lt;/P&gt;&lt;P&gt;I have list box of Month, so when i select any month less than August 18 it gives answer for that particular month only&amp;nbsp; (i.e. 1000) but when no selection is done or month is selected which is greater than Aug 18 then it does not show anything.&lt;/P&gt;&lt;P&gt;What i want is when no selection is done or month less than August 18 or even greater month selection is done from Aug 18 then also it should show 5000 MT Qty. only.&lt;/P&gt;&lt;P&gt;Please help me out in this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 08:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-selection-in-IF-statement/m-p/1818126#M67034</guid>
      <dc:creator>Learner</dc:creator>
      <dc:date>2021-06-27T08:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selection in IF statement</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-selection-in-IF-statement/m-p/1818140#M67037</link>
      <description>&lt;P&gt;try with below set expression,&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Group={'Production_Sales qty.'},Month={"&amp;lt;=01-08-2018"}&amp;gt;}Sale)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jun 2021 13:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-selection-in-IF-statement/m-p/1818140#M67037</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2021-06-27T13:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selection in IF statement</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-selection-in-IF-statement/m-p/1818191#M67045</link>
      <description>&lt;P&gt;Thank you for the reply!!!!!!&lt;/P&gt;&lt;P&gt;It does give a correct answer. Wanted to know that can i use if statement in Set expression, because i have two more column which is plant &amp;amp; product. There are 5 plants &amp;amp; 9 products and the &amp;lt;=01-08-2018 condition is for one plant and one product only. {$&amp;lt; Plant = 'NDL', Product = 'OPC-Self'&amp;gt;} and there are other condition also for different product &amp;amp; Plant that's why i wanted if statement instead of set expression. Therefore i need if statement which ignore list box selections for Months.............&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 02:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-selection-in-IF-statement/m-p/1818191#M67045</guid>
      <dc:creator>Learner</dc:creator>
      <dc:date>2021-06-28T02:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore selection in IF statement</title>
      <link>https://community.qlik.com/t5/App-Development/Ignore-selection-in-IF-statement/m-p/1818200#M67048</link>
      <description>&lt;P&gt;I tried your formula but when i enter your formula it gives correct answer for whole year but when i select month from the list box it does not take the selection in consideration it keep on giving whole value for the year as a whole and not for that particular month..........&lt;/P&gt;&lt;P&gt;Please help me out, where i am going wrong......&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 04:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ignore-selection-in-IF-statement/m-p/1818200#M67048</guid>
      <dc:creator>Learner</dc:creator>
      <dc:date>2021-06-28T04:59:02Z</dc:date>
    </item>
  </channel>
</rss>

