<?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 Annualized YTD expression in chart object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Annualized-YTD-expression-in-chart-object/m-p/999186#M339741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to find the max month YTD metric value in each quarter, divide it by the corresponding month # and multiply it by 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example would be looking at Q-3 2015, I want (Sep YTD Value1/9)*12/ Sep YTD Value2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current expression was just taking the sum of the monthly value 1 in the quarter and dividing them by the sum of monthly of value 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;QuarterId= {"&amp;gt;=$(=Max(QuarterId)-11) &amp;lt;=$(=Max(QuarterId))"}, MonthYear=,YearQuarter=,&amp;nbsp; sOpexCat ={'Value1'}&amp;gt;}sOpexValue)&lt;/P&gt;&lt;P&gt;/sum({$&amp;lt;QuarterId= {"&amp;gt;=$(=Max(QuarterId)-11) &amp;lt;=$(=Max(QuarterId))"}, MonthYear=,YearQuarter=,&amp;nbsp; sOpexCat = {'Value2}&amp;gt;}sOpexValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see the set currently displays the last 12 quarters based on the user selection, which I want to keep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to work with &lt;SPAN style="font-size: 13.3333px;"&gt;Value1YTD and &lt;SPAN style="font-size: 13.3333px;"&gt;Value2YTD, So I need a set expression that would find the Max(MonthId) in each quarter to return the last month, then another set to identify the month number. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this, but it only returns the last month reported, not all max months per the Quarter dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(Month(Max({&amp;lt; MonthId = {"=$(=Max(MonthId))"} &amp;gt;} DateNum)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2015 19:01:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-05T19:01:02Z</dc:date>
    <item>
      <title>Annualized YTD expression in chart object</title>
      <link>https://community.qlik.com/t5/QlikView/Annualized-YTD-expression-in-chart-object/m-p/999186#M339741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to find the max month YTD metric value in each quarter, divide it by the corresponding month # and multiply it by 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example would be looking at Q-3 2015, I want (Sep YTD Value1/9)*12/ Sep YTD Value2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current expression was just taking the sum of the monthly value 1 in the quarter and dividing them by the sum of monthly of value 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;QuarterId= {"&amp;gt;=$(=Max(QuarterId)-11) &amp;lt;=$(=Max(QuarterId))"}, MonthYear=,YearQuarter=,&amp;nbsp; sOpexCat ={'Value1'}&amp;gt;}sOpexValue)&lt;/P&gt;&lt;P&gt;/sum({$&amp;lt;QuarterId= {"&amp;gt;=$(=Max(QuarterId)-11) &amp;lt;=$(=Max(QuarterId))"}, MonthYear=,YearQuarter=,&amp;nbsp; sOpexCat = {'Value2}&amp;gt;}sOpexValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see the set currently displays the last 12 quarters based on the user selection, which I want to keep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to work with &lt;SPAN style="font-size: 13.3333px;"&gt;Value1YTD and &lt;SPAN style="font-size: 13.3333px;"&gt;Value2YTD, So I need a set expression that would find the Max(MonthId) in each quarter to return the last month, then another set to identify the month number. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this, but it only returns the last month reported, not all max months per the Quarter dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(Month(Max({&amp;lt; MonthId = {"=$(=Max(MonthId))"} &amp;gt;} DateNum)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 19:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Annualized-YTD-expression-in-chart-object/m-p/999186#M339741</guid>
      <dc:creator />
      <dc:date>2015-10-05T19:01:02Z</dc:date>
    </item>
  </channel>
</rss>

