<?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 Problem with IF in the table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163164#M36362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF (DATBUD_PP&amp;gt; = '01 / 01 / "&amp;amp; Date (Today (), 'YYYY') AND DATBUD_PP &amp;lt;= Date (Today (), 'DD / MM / YYYY'), Sum (AMOUNT_PP))&lt;/P&gt;&lt;P&gt;You are using: '01 / 01 / "&amp;amp; Date (Today (), 'YYYY')&lt;/P&gt;&lt;P&gt;but i think you need '01 / 01 /' &amp;amp; Year (Today ())&lt;/P&gt;&lt;P&gt;hope this help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jan 2011 17:25:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-11T17:25:53Z</dc:date>
    <item>
      <title>Problem with IF in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163162#M36360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created the following table:&lt;/P&gt;&lt;P&gt;REEL_BUDGET_PREV:&lt;/P&gt;&lt;P&gt;LOAD LIBELLE_GPE_RES_IMP_PP,&lt;/P&gt;&lt;P&gt;LIBELLE_GPE_PROFIT_PERTE_PP,&lt;/P&gt;&lt;P&gt;LIBELLE_GPE_CPT_PP,&lt;/P&gt;&lt;P&gt;LIBELLE_COMPTE_PP,&lt;/P&gt;&lt;P&gt;DATEECR_PP,&lt;/P&gt;&lt;P&gt;DEBIT_PP,&lt;/P&gt;&lt;P&gt;CREDIT_PP,&lt;/P&gt;&lt;P&gt;CPTE_PP,&lt;/P&gt;&lt;P&gt;AMOUNT_PP,&lt;/P&gt;&lt;P&gt;DATBUD_PP&lt;/P&gt;&lt;P&gt;RESIDENT AUXIL;&lt;/P&gt;&lt;P&gt;When I filter compared to DATBUD_PP using the following query&lt;/P&gt;&lt;P&gt;IF (DATBUD_PP&amp;gt; = '01 / 01 / "&amp;amp; Date (Today (), 'YYYY') AND DATBUD_PP &amp;lt;= Date (Today (), 'DD / MM / YYYY'), Sum (AMOUNT_PP))&lt;/P&gt;&lt;P&gt;I have not results. But the dates in the specified interval exists and also amounts.&lt;/P&gt;&lt;P&gt;What may be the problem and how to solve it??&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 10:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163162#M36360</guid>
      <dc:creator />
      <dc:date>2011-01-11T10:50:29Z</dc:date>
    </item>
    <item>
      <title>Re. :Problem with IF in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163163#M36361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yimen,&lt;/P&gt;&lt;P&gt;You can try something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum(if(InYearToDate(DATBUD_PP,Today(),0), AMOUNT_PP))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 11:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163163#M36361</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2011-01-11T11:17:10Z</dc:date>
    </item>
    <item>
      <title>Problem with IF in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163164#M36362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF (DATBUD_PP&amp;gt; = '01 / 01 / "&amp;amp; Date (Today (), 'YYYY') AND DATBUD_PP &amp;lt;= Date (Today (), 'DD / MM / YYYY'), Sum (AMOUNT_PP))&lt;/P&gt;&lt;P&gt;You are using: '01 / 01 / "&amp;amp; Date (Today (), 'YYYY')&lt;/P&gt;&lt;P&gt;but i think you need '01 / 01 /' &amp;amp; Year (Today ())&lt;/P&gt;&lt;P&gt;hope this help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 17:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163164#M36362</guid>
      <dc:creator />
      <dc:date>2011-01-11T17:25:53Z</dc:date>
    </item>
    <item>
      <title>Re:Problem with IF in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163165#M36363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You care comparing your date field to a string - '01 / 01 / '...&lt;/P&gt;&lt;P&gt;You should be comparing dates to dates or dates to numbers. I don't think comparing dates to strings can work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 18:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163165#M36363</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-01-11T18:44:32Z</dc:date>
    </item>
    <item>
      <title>Problem with IF in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163166#M36364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yimen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your formula should be like this:&lt;/P&gt;&lt;P&gt;sum(IF (DATBUD_PP&amp;gt; = '01 / 01 / "&amp;amp; Date (Today (), 'YYYY') AND DATBUD_PP &amp;lt;= Date (Today (), 'DD / MM / YYYY'), AMOUNT_PP,0))&lt;/P&gt;&lt;P&gt;The IF condition has to be evaluated in every line of data before Qlikview can add the values.&lt;/P&gt;&lt;P&gt;I hope that solves it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 19:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163166#M36364</guid>
      <dc:creator />
      <dc:date>2011-01-11T19:13:12Z</dc:date>
    </item>
    <item>
      <title>Re. :Problem with IF in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163167#M36365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning.&lt;/P&gt;&lt;P&gt;I have not found the explanation on the function : &lt;B&gt;InYearToDate(DATBUD_PP,Today(),0)&lt;/B&gt;&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;Please can someone explain me the role of this function?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;B&gt;&lt;/B&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 09:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163167#M36365</guid>
      <dc:creator />
      <dc:date>2011-01-12T09:47:13Z</dc:date>
    </item>
    <item>
      <title>Re. :Problem with IF in the table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163168#M36366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;what about built-in help system? Did you use it? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;this is explanation from help system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4 style="background-color:#c0c0c0;"&gt;InYearToDate ( date, basedate , shift [, first_month_of_year = 1] )&lt;/H4&gt;&lt;P style="font-weight:normal;margin-bottom:0px;margin-left:40px;background-color:transparent;"&gt;returns true if date lies inside the part of year containing basedate up until and including the last millisecond of basedate. The year can be offset by shift. Shift is an integer, where the value 0 indicates the year which contains basedate. Negative values in shift indicate preceding years and positive values indicate succeeding years. If you want to work with (fiscal) years not starting in January, you may indicate a value between 2 and 12 in first_month_of_year.&lt;/P&gt;&lt;H2&gt;Examples:&lt;/H2&gt;&lt;P style="font-weight:normal;margin-bottom:0px;margin-left:40px;background-color:transparent;"&gt;inyeartodate ( '2006-01-25', '2006-02-01', 0 ) returns true&lt;/P&gt;&lt;P style="font-weight:normal;margin-bottom:0px;margin-left:40px;background-color:transparent;"&gt;inyeartodate ( '2006-01-25', '2006-01-01', 0 ) returns false&lt;/P&gt;&lt;P style="font-weight:normal;margin-bottom:0px;margin-left:40px;background-color:transparent;"&gt;inyeartodate ( '2005-01-25', '2006-02-01', -1 ) returns true&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 09:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-IF-in-the-table/m-p/163168#M36366</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2011-01-12T09:57:46Z</dc:date>
    </item>
  </channel>
</rss>

