<?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: What wrong with this syntax? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-wrong-with-this-syntax/m-p/111804#M758329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Continuing to build on this - Now what am I doing wrong? The first part of the formula obviously works, it's the if statement that doesn't seem to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If the date is less than 15 deduct the total of current month and previous month if greater than 15 then just current month from the total for the year.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Year]={$(vCurrentYear)},[Major Category]={'Project Costs'},[%RED_IT_FINANCIAL_ALL]={1}&amp;gt;}[Actuals.FIN]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- if(date('$(today())','DD')&amp;gt;15,Sum({&amp;lt;[Year]={$(vCurrentYear)},[Major Category]={'Project Costs'},[%RED_IT_FINANCIAL_ALL]={1},[Month Num]={'$(=month(today())+0)'}&amp;gt;}[Actuals.FIN]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Year]={$(vCurrentYear)},[Major Category]={'Project Costs'},[%RED_IT_FINANCIAL_ALL]={1},[Month Num]={'$(=month(today())+0)'}&amp;gt;}[Actuals.FIN]) +&amp;nbsp; Sum({&amp;lt;[Year]={$(vCurrentYear)},[Major Category]={'Project Costs'},[%RED_IT_FINANCIAL_ALL]={1},[Month Num]={'$(=month(today())+1)'}&amp;gt;}[Actuals.FIN]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2018 18:23:43 GMT</pubDate>
    <dc:creator>adurgani</dc:creator>
    <dc:date>2018-09-11T18:23:43Z</dc:date>
    <item>
      <title>What wrong with this syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/What-wrong-with-this-syntax/m-p/111800#M758325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sure that this is really rudimentary, but what's wrong with this formula?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[Year]={$(vCurrentYear)},[%RED_IT_FINANCIAL_ALL]={1}&amp;gt;}[Actuals.FIN]) - Sum({&amp;lt;[Year]={$(vCurrentYear)},[%RED_IT_FINANCIAL_ALL]={1},[Month Num]=month(today())&amp;gt;}[Actuals.FIN])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm adding actuals for the whole year and deducting current month's actuals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-wrong-with-this-syntax/m-p/111800#M758325</guid>
      <dc:creator>adurgani</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: What wrong with this syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/What-wrong-with-this-syntax/m-p/111801#M758326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check if your field [Month Num] is same Format as month(today())&lt;/P&gt;&lt;P&gt;month(today()) gives back string like "Aug". If [month Num] contains number you should use date(today(),'MM')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 14:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-wrong-with-this-syntax/m-p/111801#M758326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-10T14:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: What wrong with this syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/What-wrong-with-this-syntax/m-p/111802#M758327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the red part is the wrong part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;[Year]={$(vCurrentYear)},[%RED_IT_FINANCIAL_ALL]={1}&amp;gt;}[Actuals.FIN]) - Sum({&amp;lt;[Year]={$(vCurrentYear)},[%RED_IT_FINANCIAL_ALL]={1},&lt;SPAN style="color: #ff0000;"&gt;[Month Num]=month(today())&lt;/SPAN&gt;&amp;gt;}[Actuals.FIN])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;try it like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;[Year]={$(vCurrentYear)},[%RED_IT_FINANCIAL_ALL]={1}&amp;gt;}[Actuals.FIN]) - Sum({&amp;lt;[Year]={$(vCurrentYear)},[%RED_IT_FINANCIAL_ALL]={1},&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; color: #ff0000;"&gt;[Month Num]={'$(=&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;month(today())&lt;/SPAN&gt;)'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;}[Actuals.FIN])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 14:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-wrong-with-this-syntax/m-p/111802#M758327</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-09-10T14:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: What wrong with this syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/What-wrong-with-this-syntax/m-p/111803#M758328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! this really helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 15:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-wrong-with-this-syntax/m-p/111803#M758328</guid>
      <dc:creator>adurgani</dc:creator>
      <dc:date>2018-09-10T15:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: What wrong with this syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/What-wrong-with-this-syntax/m-p/111804#M758329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Continuing to build on this - Now what am I doing wrong? The first part of the formula obviously works, it's the if statement that doesn't seem to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If the date is less than 15 deduct the total of current month and previous month if greater than 15 then just current month from the total for the year.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Year]={$(vCurrentYear)},[Major Category]={'Project Costs'},[%RED_IT_FINANCIAL_ALL]={1}&amp;gt;}[Actuals.FIN]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- if(date('$(today())','DD')&amp;gt;15,Sum({&amp;lt;[Year]={$(vCurrentYear)},[Major Category]={'Project Costs'},[%RED_IT_FINANCIAL_ALL]={1},[Month Num]={'$(=month(today())+0)'}&amp;gt;}[Actuals.FIN]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Year]={$(vCurrentYear)},[Major Category]={'Project Costs'},[%RED_IT_FINANCIAL_ALL]={1},[Month Num]={'$(=month(today())+0)'}&amp;gt;}[Actuals.FIN]) +&amp;nbsp; Sum({&amp;lt;[Year]={$(vCurrentYear)},[Major Category]={'Project Costs'},[%RED_IT_FINANCIAL_ALL]={1},[Month Num]={'$(=month(today())+1)'}&amp;gt;}[Actuals.FIN]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 18:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-wrong-with-this-syntax/m-p/111804#M758329</guid>
      <dc:creator>adurgani</dc:creator>
      <dc:date>2018-09-11T18:23:43Z</dc:date>
    </item>
  </channel>
</rss>

