<?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: Getting YTD values (set analysis) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402465#M484254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - I saw that after the initial post.&amp;nbsp; Removed it, but did make a difference.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if it has someting to do with the section:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyPeriodID= {"&amp;lt;=&lt;STRONG&gt;$&lt;/STRONG&gt;(=Max(MyPeriodID))"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyPeriodID is linked one to one with MyMonth - I.E.&amp;nbsp; Each MyMonth has a MyPeriodID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, MyPeriodID is not dispayed anywhere, so no possibility for a user to select it, so will&amp;nbsp; Max(MyPeriodID) even get evaluated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 03:12:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-24T03:12:02Z</dc:date>
    <item>
      <title>Getting YTD values (set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402461#M484250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get YTD SalesAmount values to show, but do not - the measure just dissapears from screen - do not get an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My YTD SalesAmount formula is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MyPeriodID= {"&amp;lt;=$(=Max(MyPeriodID))"}, MyYear= {"$(=Max(MyYear))"}, MyQuarter = , MyMonthNum = , &amp;gt; } SalesAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyPeriodID was loaded as (MyYear*12) + MyMonthNum, giving me a sequential value that I can use for period comparisons. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I am missing something.&amp;nbsp; I do not show MyPeriodID on the screen for the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 18:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402461#M484250</guid>
      <dc:creator />
      <dc:date>2013-05-23T18:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting YTD values (set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402462#M484251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks ok to me. The only thing that springs to mind is that you could also have a date field. If so perhaps that needs to be added to the set modifier. If that's not the problem you'll have to create a sample document that exhibits the problem your experiencing and upload that file here so we can have a look at it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 18:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402462#M484251</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-23T18:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting YTD values (set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402463#M484252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, there is no date field, as this is period snapshot data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will create a small sample and upload if I cannot figure this out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 19:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402463#M484252</guid>
      <dc:creator />
      <dc:date>2013-05-23T19:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting YTD values (set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402464#M484253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be no comma after &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;MyMonthNum = , &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 23:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402464#M484253</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-05-23T23:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting YTD values (set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402465#M484254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - I saw that after the initial post.&amp;nbsp; Removed it, but did make a difference.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if it has someting to do with the section:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyPeriodID= {"&amp;lt;=&lt;STRONG&gt;$&lt;/STRONG&gt;(=Max(MyPeriodID))"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyPeriodID is linked one to one with MyMonth - I.E.&amp;nbsp; Each MyMonth has a MyPeriodID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, MyPeriodID is not dispayed anywhere, so no possibility for a user to select it, so will&amp;nbsp; Max(MyPeriodID) even get evaluated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 03:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402465#M484254</guid>
      <dc:creator />
      <dc:date>2013-05-24T03:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting YTD values (set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402466#M484255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had extra space in [Fiscal Year_H ] and later referenced as [Fiscal Year_H].&amp;nbsp; So that caused nothing to show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, that corrected, both if these (1 and 2) below work.&amp;nbsp; The first, I personally would consider a &lt;STRONG&gt;&lt;EM&gt;true &lt;/EM&gt;&lt;/STRONG&gt;YTD, as you can select any month or quarter, and the calc &lt;STRONG&gt;does not change&lt;/STRONG&gt;.&amp;nbsp; The second YTD , is YTD &lt;STRONG&gt;&lt;EM&gt;based on the greatest month selected&lt;/EM&gt;&lt;/STRONG&gt;, because of the inclusion of ... Max(Fiscal_MonthID_H).&amp;nbsp;&amp;nbsp;&amp;nbsp; I think the second would be misleading to the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its safer to use the first, (completely ignoring the month and quarter), to show a true YTD.&amp;nbsp; &lt;STRONG&gt;What do you think?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;&amp;nbsp; [Fiscal Year_H ]= {$(=Max([Fiscal Year_H ]))}, [Fiscal Quarter_H ] = , RA_Month_H =&amp;gt; } [WORLD Billed Amt ])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt; Fiscal_MonthID_H = {"&amp;lt;=$(=Max(Fiscal_MonthID_H))"&lt;/P&gt;&lt;P&gt;}, [Fiscal Year_H ]= {$(=Max([Fiscal Year_H ]))}, [Fiscal Quarter_H ] = , RA_Month_H =&amp;gt; } [WORLD Billed Amt ])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 04:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402466#M484255</guid>
      <dc:creator />
      <dc:date>2013-05-24T04:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting YTD values (set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402467#M484256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had extra space in [Fiscal Year_H ] and later referenced as [Fiscal Year_H].&amp;nbsp; So that caused nothing to show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, that corrected, both if these (1 and 2) below work.&amp;nbsp; The first, I personally would consider a &lt;STRONG&gt;&lt;EM&gt;true &lt;/EM&gt;&lt;/STRONG&gt;YTD, as you can select any month or quarter, and the calc &lt;STRONG&gt;does not change&lt;/STRONG&gt;.&amp;nbsp; The second YTD , is YTD &lt;STRONG&gt;&lt;EM&gt;based on the greatest month selected&lt;/EM&gt;&lt;/STRONG&gt;, because of the inclusion of ... Max(Fiscal_MonthID_H).&amp;nbsp;&amp;nbsp;&amp;nbsp; I think the second would be misleading to the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its safer to use the first, (completely ignoring the month and quarter), to show a true YTD.&amp;nbsp; &lt;STRONG&gt;What do you think?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;&amp;nbsp; [Fiscal Year_H ]= {$(=Max([Fiscal Year_H ]))}, [Fiscal Quarter_H ] = , RA_Month_H =&amp;gt; } [WORLD Billed Amt ])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt; Fiscal_MonthID_H = {"&amp;lt;=$(=Max(Fiscal_MonthID_H))"&lt;/P&gt;&lt;P&gt;}, [Fiscal Year_H ]= {$(=Max([Fiscal Year_H ]))}, [Fiscal Quarter_H ] = , RA_Month_H =&amp;gt; } [WORLD Billed Amt ])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 04:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402467#M484256</guid>
      <dc:creator />
      <dc:date>2013-05-24T04:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting YTD values (set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402468#M484257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on what want to show, and how much control you want to give to the user. I've seen users request it both ways. The more insidious problem is what if I select Product "Bicycles", and I haven't sold any Bicycles yet this year? YTD should be 0, right? I believe your expression will return previous year values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've struggled with getting this just right in Qlikview Components (&lt;A class="loading" href="http://qlikviewcomponents.org" title="http://qlikviewcomponents.org"&gt;http://qlikviewcomponents.org) Cal&lt;/A&gt;endars. The latest version was adjusted to honor only Calendar field selections in calculating periods. This seems to be what most people want. So works like your expression #2 above, but guards against the no Bicycles case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 18:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402468#M484257</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-05-24T18:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting YTD values (set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402469#M484258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the insight.&amp;nbsp; I would have thought the no bikes scenario would have returned 0, for the current year (if current year is selected), and not jumped back to the previous Max(). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 18:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-YTD-values-set-analysis/m-p/402469#M484258</guid>
      <dc:creator />
      <dc:date>2013-05-24T18:47:44Z</dc:date>
    </item>
  </channel>
</rss>

