<?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: Is it possible with IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590801#M738155</link>
    <description>&lt;P&gt;nr 1: pick(&lt;BR /&gt;Match(TestText,'Missing Due Date','Total yes all ref','A1 - NO','B1 - NO','C1 - NO','TOTAL')&lt;BR /&gt;,Count({&amp;lt;Duedate={''}&amp;gt;}Duedate)&lt;BR /&gt;,Count({&amp;lt;Status={'YES'}&amp;gt;}Status)&lt;BR /&gt;,Count({&amp;lt;Reference={'A1'},Status={'NO'}&amp;gt;}Status)&lt;BR /&gt;,Count({&amp;lt;Reference={'B1'},Status={'NO'}&amp;gt;}Status)&lt;BR /&gt;,Count({&amp;lt;Reference={'C1'},Status={'NO'}&amp;gt;}Status)&lt;BR /&gt;,Count({&amp;lt;Duedate-={''}&amp;gt;}Duedate)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the duedate field needs to be converted to a date or num field to create the setanalysis for duedate. When thats done you can use duedate={"&amp;lt;=$(=date(today()))"} or duedatenumber={"&amp;lt;=$(=floor(today()))"}&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 07:46:59 GMT</pubDate>
    <dc:creator>bramkn</dc:creator>
    <dc:date>2019-06-12T07:46:59Z</dc:date>
    <item>
      <title>Is it possible with IF</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590769#M738152</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Is it possible to write an IF in an expression like&amp;nbsp;&lt;/P&gt;&lt;P&gt;=IF(a&amp;lt;b, x = 1 AND IF(...) )&lt;/P&gt;&lt;P&gt;in my problem:&lt;/P&gt;&lt;P&gt;I have to check the date at first and if the date is smaller than a date in the future i want to set the status to YES and count the YESes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date1&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15-07-2019&lt;/TD&gt;&lt;TD&gt;NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04-06-2019&lt;/TD&gt;&lt;TD&gt;YES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-08-2019&lt;/TD&gt;&lt;TD&gt;NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04-03-2019&lt;/TD&gt;&lt;TD&gt;YES&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to check if Date &amp;lt; Date(MonthEnd(Today(),+1)&lt;/P&gt;&lt;P&gt;If yes, i want to count the YESes. So instead of the output 2 (two YESes at first) i want as output 3.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date1&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15-07-2019&lt;/TD&gt;&lt;TD&gt;YES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04-06-2019&lt;/TD&gt;&lt;TD&gt;YES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-08-2019&lt;/TD&gt;&lt;TD&gt;NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04-03-2019&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;YES&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need an IF expression like in another table:&lt;/P&gt;&lt;P&gt;=IF(Date(date#(Date1,'DD-MM-YYYY'),' DD.MM.YYYY')&amp;lt;DATE(MonthEnd(Today(),+1), 'DD.MM.YYYY'),Status='YES' AND&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(TestText='Total yes all ref', Count(If(Status='YES',Status))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590769#M738152</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2024-11-16T03:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible with IF</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590781#M738153</link>
      <description>use set analysis count({&amp;lt;Status={'YES'}&amp;gt;}Status)&lt;BR /&gt;Or count({&amp;lt;Date1={"&amp;lt;=$(=monthend(today()))"}&amp;gt;}Date1)</description>
      <pubDate>Wed, 12 Jun 2019 07:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590781#M738153</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2019-06-12T07:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible with IF</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590796#M738154</link>
      <description>&lt;P&gt;doesn't work for me...&lt;/P&gt;&lt;P&gt;i'll append the program for better understanding&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 07:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590796#M738154</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-06-12T07:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible with IF</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590801#M738155</link>
      <description>&lt;P&gt;nr 1: pick(&lt;BR /&gt;Match(TestText,'Missing Due Date','Total yes all ref','A1 - NO','B1 - NO','C1 - NO','TOTAL')&lt;BR /&gt;,Count({&amp;lt;Duedate={''}&amp;gt;}Duedate)&lt;BR /&gt;,Count({&amp;lt;Status={'YES'}&amp;gt;}Status)&lt;BR /&gt;,Count({&amp;lt;Reference={'A1'},Status={'NO'}&amp;gt;}Status)&lt;BR /&gt;,Count({&amp;lt;Reference={'B1'},Status={'NO'}&amp;gt;}Status)&lt;BR /&gt;,Count({&amp;lt;Reference={'C1'},Status={'NO'}&amp;gt;}Status)&lt;BR /&gt;,Count({&amp;lt;Duedate-={''}&amp;gt;}Duedate)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the duedate field needs to be converted to a date or num field to create the setanalysis for duedate. When thats done you can use duedate={"&amp;lt;=$(=date(today()))"} or duedatenumber={"&amp;lt;=$(=floor(today()))"}&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 07:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590801#M738155</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2019-06-12T07:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible with IF</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590804#M738156</link>
      <description>Match seems like a better option instead of TestText = '....'&lt;BR /&gt;Thank you!&lt;BR /&gt;I will rewrite expression one. But do you know how the do it with a future date like in expression two (31.07.2019) B1 NO, C1 NO A1 NO should counted as YES because their Duedate is smaller then 31.07.2019</description>
      <pubDate>Wed, 12 Jun 2019 07:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590804#M738156</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-06-12T07:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible with IF</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590808#M738157</link>
      <description>you need to make sure the duedate field is a number/date to be able to check if it is in the future or not. When you have done that you can replace Status={'No'} with duedate={"&amp;lt;=$(=date(monthend(today())))"} or duedatenumber={"&amp;lt;=$(=floor(monthend(today())))"}</description>
      <pubDate>Wed, 12 Jun 2019 07:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-with-IF/m-p/1590808#M738157</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2019-06-12T07:51:19Z</dc:date>
    </item>
  </channel>
</rss>

