<?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: YTD based on selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-based-on-selections/m-p/488020#M481184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Worked perfectly! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2013 10:58:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-21T10:58:38Z</dc:date>
    <item>
      <title>YTD based on selections</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-based-on-selections/m-p/488017#M481181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on a solution that I need your help to solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to be able to select on year (År), month(Måned), quarter(kvaral). When doing these selections we want to present numbers for the period chosen YTD. In other words, if I do a selection on 2013 and march I want to see, jan feb and march for 2013. I found the below z-analysis.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MånedÅr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(=date(yearstart(max(MånedÅr)),'MM-YYYY')) &amp;lt;=$(=date(max(MånedÅr),'MM-YYYY'))'}&amp;gt;}FaktBeløp) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression enables me to do a selection in the below list box(månedår).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to be able to perform selections in all calendar fundtions (all).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In advance, thanks&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 11:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-based-on-selections/m-p/488017#M481181</guid>
      <dc:creator />
      <dc:date>2013-10-18T11:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: YTD based on selections</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-based-on-selections/m-p/488018#M481182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This ought to do it, assuming I got the field names right:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;År&lt;/SPAN&gt;=, Halv&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11px;"&gt;år=,&lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Kvaral&lt;/SPAN&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;MånedÅr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={'&amp;gt;=$(=date(yearstart(max(MånedÅr)),'MM-YYYY')) &amp;lt;=$(=date(max(MånedÅr),'MM-YYYY'))'}&amp;gt;}FaktBeløp)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Selections in the fields will still influence the max function to get the correct maximum MånedÅr of the possible values. But those selections won't influence the sum. Only MånedÅr will do that.&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 16:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-based-on-selections/m-p/488018#M481182</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-18T16:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: YTD based on selections</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-based-on-selections/m-p/488019#M481183</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;Try like this, if you have date dimension in your datamodel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;YearDimension=, MonthDimension=, DateDimension={'&amp;gt;=$(=YearStart(Max(DateDimension)))&amp;lt;=$(=Max(DateDimension))'}&amp;gt;} MeasureName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 16:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-based-on-selections/m-p/488019#M481183</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-10-18T16:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: YTD based on selections</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-based-on-selections/m-p/488020#M481184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Worked perfectly! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 10:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-based-on-selections/m-p/488020#M481184</guid>
      <dc:creator />
      <dc:date>2013-10-21T10:58:38Z</dc:date>
    </item>
  </channel>
</rss>

