<?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 SUM values on chart for Years and Months based on calculated dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136880#M373039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to create a graph like the one that is showed in the image below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132335_Untitled.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the graph I have the following calculated dimension which give me the last 3 years and the current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=ValueList($(=$(vMaxYearSelected)-2), $(=$(vMaxYearSelected)-1), vMaxYearSelected, vMaxMonthSelected)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables that I'm using has the expressions:&lt;/P&gt;&lt;P&gt;Max Date Selected&amp;nbsp; (vMaxDateSelected):&amp;nbsp; =MAX({$} Date)&lt;/P&gt;&lt;P&gt;Max Year Selected&amp;nbsp; (vMaxYearSelected):&amp;nbsp; =Year(MAX({$} Date))&lt;/P&gt;&lt;P&gt;Max Month Selected (vMaxMonthSelected): =Month(MAX({$&amp;lt;Year={$(vMaxYearSelected)}&amp;gt;} Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I working on the chart expression to SUM the values of each category by year and for the last month, like showed on the image above. Following there is the expression that I'm trying to implement, but without sucess:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Pick( Match( ValueList( $(=$(vMaxYearSelected)-2), $(=$(vMaxYearSelected)-1),vMaxYearSelected,vMaxMonthSelected), $(=$(vMaxYearSelected)-2), $(=$(vMaxYearSelected)-1), $(vMaxYearSelected), vMaxMonthSelected), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM({$&amp;lt; Year={$(=$(vMaxYearSelected)-2)}, Year={$(=$(vMaxYearSelected)-1)}, MesInicio={$(vMaxMonthSelectedh)} &amp;gt;} NrCategories) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, after many retries I'm not able to get this working and get the correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me here, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2016 11:36:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-25T11:36:59Z</dc:date>
    <item>
      <title>SUM values on chart for Years and Months based on calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136880#M373039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to create a graph like the one that is showed in the image below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132335_Untitled.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the graph I have the following calculated dimension which give me the last 3 years and the current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=ValueList($(=$(vMaxYearSelected)-2), $(=$(vMaxYearSelected)-1), vMaxYearSelected, vMaxMonthSelected)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables that I'm using has the expressions:&lt;/P&gt;&lt;P&gt;Max Date Selected&amp;nbsp; (vMaxDateSelected):&amp;nbsp; =MAX({$} Date)&lt;/P&gt;&lt;P&gt;Max Year Selected&amp;nbsp; (vMaxYearSelected):&amp;nbsp; =Year(MAX({$} Date))&lt;/P&gt;&lt;P&gt;Max Month Selected (vMaxMonthSelected): =Month(MAX({$&amp;lt;Year={$(vMaxYearSelected)}&amp;gt;} Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I working on the chart expression to SUM the values of each category by year and for the last month, like showed on the image above. Following there is the expression that I'm trying to implement, but without sucess:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Pick( Match( ValueList( $(=$(vMaxYearSelected)-2), $(=$(vMaxYearSelected)-1),vMaxYearSelected,vMaxMonthSelected), $(=$(vMaxYearSelected)-2), $(=$(vMaxYearSelected)-1), $(vMaxYearSelected), vMaxMonthSelected), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM({$&amp;lt; Year={$(=$(vMaxYearSelected)-2)}, Year={$(=$(vMaxYearSelected)-1)}, MesInicio={$(vMaxMonthSelectedh)} &amp;gt;} NrCategories) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, after many retries I'm not able to get this working and get the correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me here, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 11:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136880#M373039</guid>
      <dc:creator />
      <dc:date>2016-07-25T11:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: SUM values on chart for Years and Months based on calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136881#M373040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share the sample file that you have been working on? It might be easier to provide a solution by looking at what you already have.&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>Mon, 25 Jul 2016 13:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136881#M373040</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-25T13:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: SUM values on chart for Years and Months based on calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136882#M373041</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;Please find the Qv sample attached. &lt;/P&gt;&lt;P&gt;I have been trying to solve this issue and I change a bit the SUM expressions, however the base was the ones that I put first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 15:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136882#M373041</guid>
      <dc:creator />
      <dc:date>2016-07-25T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: SUM values on chart for Years and Months based on calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136883#M373042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue on this subject?&lt;/P&gt;&lt;P&gt;Do you need anything else that could help achieve a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136883#M373042</guid>
      <dc:creator />
      <dc:date>2016-07-26T14:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: SUM values on chart for Years and Months based on calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136884#M373043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not yet, I am not sure what the desired result needs to be. Can you provide how the output needs to look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 15:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136884#M373043</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-26T15:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: SUM values on chart for Years and Months based on calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136885#M373044</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;The desired output is a chart like the above image with the sum by year and by the last month. I'm using a calculated dimension and my issue is in the expression to sum the values by year. I've placed in the attached qvw doc with what I have so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 16:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136885#M373044</guid>
      <dc:creator />
      <dc:date>2016-07-26T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: SUM values on chart for Years and Months based on calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136886#M373045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132603_Capture.PNG" style="height: 197px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(Type, Year, Month)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TipoCandidatura&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(Only({1}Type),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;DateType={'Category'}, TipoCandidatura={'Qualificação', 'Requalificação'}, Year = {"$(='&amp;gt;=' &amp;amp; (Max(Year)-2) &amp;amp; '&amp;lt;=' &amp;amp; Max(Year))"}&amp;gt;}NrCandidaturasEntradas),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;DateType={'Category'}, TipoCandidatura={'Qualificação', 'Requalificação'}, Month = {"$(=MaxString({&amp;lt;Year = {$(=Max(Year))}&amp;gt;}Month))"}&amp;gt;}NrCandidaturasEntradas))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 02:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136886#M373045</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-27T02:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: SUM values on chart for Years and Months based on calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136887#M373046</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;Great!&lt;/P&gt;&lt;P&gt;That's exactly what I looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Paulo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 10:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136887#M373046</guid>
      <dc:creator />
      <dc:date>2016-07-27T10:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: SUM values on chart for Years and Months based on calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136888#M373047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem at all. I am glad I was able to finally help you resolve it.&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>Wed, 27 Jul 2016 10:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-values-on-chart-for-Years-and-Months-based-on-calculated/m-p/1136888#M373047</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-27T10:12:13Z</dc:date>
    </item>
  </channel>
</rss>

