<?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: Get Year-To-Date values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Year-To-Date-values/m-p/1529527#M747066</link>
    <description>&lt;P&gt;Iguess the problem is that the selection is on 2018 and march, not jan and feb, but i want to include&amp;nbsp;those&amp;nbsp;into my calculation, how do i do this. But not sure tho&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2019 14:35:17 GMT</pubDate>
    <dc:creator>HermGerm</dc:creator>
    <dc:date>2019-01-11T14:35:17Z</dc:date>
    <item>
      <title>Get Year-To-Date values</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Year-To-Date-values/m-p/1529485#M747064</link>
      <description>&lt;P&gt;if one selects a year and a month, I want to show year to date values.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Example:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Chosing: 2018 and Mar&lt;/P&gt;&lt;P&gt;Should calculate everything from the beginning of that year (2018) till the end of selected month (March)&lt;/P&gt;&lt;P&gt;Im using this, but its not working&lt;/P&gt;&lt;PRE&gt;sum(
{&amp;lt;
&amp;nbsp; &amp;nbsp; DocType={'R','G'}, 
&amp;nbsp; &amp;nbsp; MainDate={"&amp;gt;=$(=YearStart(sh_ActDatSelectedYear))&amp;lt;=$(MonthEnd('01.'&amp;amp;max(MainDateMonth)&amp;amp;'.'&amp;amp;max(MainDateYear)))"}
&amp;gt;}
Turnover_Factura
)&lt;/PRE&gt;&lt;P&gt;It is just showing the values of the selected period (only march 2018), but not the whole year until end of march&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sh_ActDatSelectedYear&lt;/STRONG&gt; contains in that example '11.01.2018'&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Year-To-Date-values/m-p/1529485#M747064</guid>
      <dc:creator>HermGerm</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get Year-To-Date values</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Year-To-Date-values/m-p/1529490#M747065</link>
      <description>&lt;P&gt;Not entirely sure what else might need to change, but you def. need an equal sign for the second part of your set modifier for MainDate&lt;/P&gt;&lt;PRE&gt;sum(
{&amp;lt;
&amp;nbsp; &amp;nbsp; DocType={'R','G'}, 
&amp;nbsp; &amp;nbsp; MainDate={"&amp;gt;=$(=YearStart(sh_ActDatSelectedYear))&amp;lt;=$(&lt;FONT size="5" color="#FF0000"&gt;=&lt;/FONT&gt;MonthEnd('01.'&amp;amp;max(MainDateMonth)&amp;amp;'.'&amp;amp;max(MainDateYear)))"}
&amp;gt;}
Turnover_Factura
)&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jan 2019 13:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Year-To-Date-values/m-p/1529490#M747065</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-11T13:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get Year-To-Date values</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Year-To-Date-values/m-p/1529527#M747066</link>
      <description>&lt;P&gt;Iguess the problem is that the selection is on 2018 and march, not jan and feb, but i want to include&amp;nbsp;those&amp;nbsp;into my calculation, how do i do this. But not sure tho&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 14:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Year-To-Date-values/m-p/1529527#M747066</guid>
      <dc:creator>HermGerm</dc:creator>
      <dc:date>2019-01-11T14:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get Year-To-Date values</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Year-To-Date-values/m-p/1529541#M747067</link>
      <description>&lt;P&gt;I guess ignore selection in the Month field?&lt;/P&gt;&lt;PRE&gt;sum(
{&amp;lt;
&amp;nbsp; &amp;nbsp; DocType={'R','G'}, 
&amp;nbsp; &amp;nbsp; MainDate={"&amp;gt;=$(=YearStart(sh_ActDatSelectedYear))&amp;lt;=$(&lt;FONT size="5" color="#FF0000"&gt;=&lt;/FONT&gt;MonthEnd('01.'&amp;amp;max(MainDateMonth)&amp;amp;'.'&amp;amp;max(MainDateYear)))"},&lt;BR /&gt;    &lt;FONT color="#FF0000"&gt;MonthField&lt;/FONT&gt;
&amp;gt;}
Turnover_Factura
)&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jan 2019 14:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Year-To-Date-values/m-p/1529541#M747067</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-11T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get Year-To-Date values</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Year-To-Date-values/m-p/1529550#M747068</link>
      <description>&lt;P&gt;Instead of specifying a range in the set,&amp;nbsp; eg,&amp;nbsp;&amp;nbsp;Jan 1 &amp;lt;&amp;nbsp;TargetDate &amp;lt; Selected Date, &amp;nbsp;I find it easier to simply specify the year and the month separately.&lt;/P&gt;&lt;P&gt;Below is an example of prior year to date.&amp;nbsp; CMOYR_YR and MonthYear are fields from the common calendar. vPriorYear, vPriorMonthYear,&amp;nbsp; vMaxYear,&amp;nbsp;and vMaxMonthYear are variables calculated from the current selection.&lt;/P&gt;&lt;P&gt;Current Year to selected date:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="1"&gt;sum&lt;/FONT&gt;&lt;FONT size="1"&gt;({&amp;lt;&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;CMOYR_YR&lt;/FONT&gt;&lt;FONT size="1"&gt;={'$(vMaxYear)'}, &lt;FONT color="#800000" size="1"&gt;MonthYear&lt;/FONT&gt;={&lt;FONT color="#800000" size="1"&gt;"&amp;lt;=$(vMaxMonthYear)"&lt;/FONT&gt;}&amp;gt;} &lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;AIMS.PSI_FER_FLAG_ICCA&lt;/FONT&gt;&lt;FONT size="1"&gt;) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Prior Year to selected date:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="1"&gt;sum&lt;/FONT&gt;&lt;FONT size="1"&gt;({&amp;lt;&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;CMOYR_YR&lt;/FONT&gt;&lt;FONT size="1"&gt;={'$(vPriorYear)'}, &lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;MonthYear&lt;/FONT&gt;&lt;FONT size="1"&gt;={&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;"&amp;lt;=$(vPriorMonthYear)"&lt;/FONT&gt;&lt;FONT size="1"&gt;}&amp;gt;} &lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;AIMS.PSI_FER_FLAG_ICCA&lt;/FONT&gt;&lt;FONT size="1"&gt;) &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 15:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Year-To-Date-values/m-p/1529550#M747068</guid>
      <dc:creator>Donicc</dc:creator>
      <dc:date>2019-01-11T15:31:53Z</dc:date>
    </item>
  </channel>
</rss>

