<?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 Expression not working properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146681#M375170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum({&amp;lt;PeriodId = { $(=Max(PeriodId))},Year={$(=Max(Year))}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, MonthField&lt;/SPAN&gt;&amp;gt;}Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;A _jive_internal="true" class="jive-acclaim-likelink" data-command="like" data-object-id="1039510" data-object-type="2" href="https://community.qlik.com/thread/216899" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;YTD Expression not working properly&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 May 2016 05:21:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-15T05:21:16Z</dc:date>
    <item>
      <title>YTD Expression not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146678#M375167</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;I am trying to find out Year To Date Value based on the below expression:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;PeriodId = {"&amp;lt;= $(=Max(PeriodId))"},Year={"$(=Max(Year))"} &amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two Years - 2011 and 2012&lt;/P&gt;&lt;P&gt;PeriodId-1 to 12 for Year 2011 and 13 to 24 for Year 2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here &lt;SPAN style="font-size: 13.3333px;"&gt;"&amp;lt;= $(=Max(PeriodId))" Part is not working as expected. If I split that expression like &lt;SPAN style="font-size: 13.3333px;"&gt;$(=Max(PeriodId)) and test, it works. But as a whole &lt;SPAN style="font-size: 13.3333px;"&gt;"&amp;lt;= $(=Max(PeriodId))" is not working. If I select Year 2011 and September which has PeriodId as 9, I am suppoed to get the results from Jan to Sep because of the condition "&amp;lt;= 9 " but instead I am getting the value of september.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I do not know what is wrong with the expression. Can someone please help me on this. &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2016 04:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146678#M375167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-14T04:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Expression not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146679#M375168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is September a separate month field? I think you need to ignore selection in Month and it might work for you:&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;&lt;STRONG&gt;=Sum({&amp;lt;PeriodId = {"&amp;lt;= $(=Max(PeriodId))"},Year={"$(=Max(Year))"}&lt;SPAN style="color: #ff0000;"&gt;, MonthField&lt;/SPAN&gt;&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2016 11:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146679#M375168</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-14T11:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Expression not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146680#M375169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works now. Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question related to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ignoring a dimension means anything we selected in that dimension List Box will be ignored in the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;PeriodId = {"&amp;lt;= $(=Max(PeriodId))"},Year={"$(=Max(Year))"},Month=&amp;gt;}Sales) Works as expected. If I select a Month dimension in the list box it shows the correct Year to Date value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas if i use &lt;SPAN style="font-size: 13.3333px;"&gt;=Sum({&amp;lt;PeriodId = {"&amp;lt;= $(=Max(PeriodId))"},Year={"$(=Max(Year))"}&amp;gt;}Sales) by removing the "Month=", and select a Month dimension in the list box, it shows the result for that Month alone not the YTD value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain, how adding the "&lt;SPAN style="font-size: 13.3333px;"&gt;Month=" changes the value here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, as per definition, if we use Dimension= in the set analysis, then that dimension selection should be ignored right? But in the above two different cases, when i select a Month the value changes. How it is possible? Please help with an explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2016 02:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146680#M375169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-15T02:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Expression not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146681#M375170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum({&amp;lt;PeriodId = { $(=Max(PeriodId))},Year={$(=Max(Year))}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, MonthField&lt;/SPAN&gt;&amp;gt;}Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;A _jive_internal="true" class="jive-acclaim-likelink" data-command="like" data-object-id="1039510" data-object-type="2" href="https://community.qlik.com/thread/216899" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;YTD Expression not working properly&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2016 05:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146681#M375170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-15T05:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Expression not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146682#M375171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you mentioned that you are making a selection in the month field, unless you ignore the selection your expression will filter to just that single month. Now the question is how is it able to show the desired result in the first case. Well you might have ignored Month in the first expression, but &lt;SPAN style="font-size: 13.3333px;"&gt;PeriodId&lt;/SPAN&gt;is related to Month. As soon as you selected a month, the value for Max(PeriodId) changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see this change, I would suggest you to add a text box object for &lt;STRONG&gt;Max(PeriodId)&lt;/STRONG&gt; and see its value changing based on selection of Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it clarify a little bit? or I answered something you already knew and did not address the question you had? Let me know and we can work on this a little more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2016 19:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146682#M375171</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-15T19:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Expression not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146683#M375172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. This really helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 00:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Expression-not-working-properly/m-p/1146683#M375172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T00:08:21Z</dc:date>
    </item>
  </channel>
</rss>

