<?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  graph aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-graph-aggr/m-p/774437#M274742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please attach an example qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 19:17:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-23T19:17:29Z</dc:date>
    <item>
      <title>YTD  graph aggr</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-graph-aggr/m-p/774436#M274741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;First of all I had the following problem with a pivot table, I have real sales data by country for different month: each row was a different country. The total was supossed to be the total for all countries but the total result was the max value of each row not the sum of rows. &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;The total of the YTD forecast in&amp;nbsp; table is working ok (not in graph): &lt;SPAN style="line-height: 1.5em;"&gt;The solutions for table is the following (not working for graph) : use AGGR(SET ANALYSIS)Country, Month.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="line-height: 1.5em;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/78899_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I had the same problem for Graphs where I only had Month dimension, I triedd wit set anlysis, aggr function, total function but the total only work for simple realt data but it is not right for complex forecast data because the total that appears is the total of Spain.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;It is not possible to use aggr function and set analysis for a graph with&amp;nbsp; complex data as a forecast YTD average for each month (Fact1/Fact2). Any solution?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;As you can see, the total is not working ok (it only shows Spain values) - the graph only shows Forecast and Ppto data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/78900_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; color: #575757; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-weight: inherit; color: #575757; font-size: 10pt; line-height: 1.5em;"&gt;Is it not possible to use aggr function and set analysis for a graph with complex data as a forecast YTD average for each month. The calculated fact is like (Fact/Fact1) / (Fact2/Fact3).- Fact2/Fact3).- Any solution? I tried a lot of times and it doesn't works. Total or dimesionality functions are not working... &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggr and set analysis only works with January. What can I do with the other months?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I only could make possible the FORECAST DATA YTD for Spain with this formula:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF(ValueList&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;('Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic')='Ene',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( {&amp;lt;Mes, ESTM_MES={01}&amp;gt;} OCUPACION)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/sum( {&amp;lt;Mes, ESTM_MES={01}&amp;gt;} ESTM_CH_MES)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF(ValueList ('Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic')='Feb',&lt;SPAN style="line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if($(vMesSelec)&amp;lt;= 02,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(sum( {&amp;lt;Mes, ESTM_MES={"$(= '&amp;gt;=' &amp;amp; '01' &amp;amp; '&amp;lt;=' &amp;amp; $(vMesSelec) )"}&amp;gt;} OCUPACION)/sum( {&amp;lt;Mes, ESTM_MES={"$(= '&amp;gt;=' &amp;amp; '01' &amp;amp; '&amp;lt;=' &amp;amp; $(vMesSelec) )"}&amp;gt;} ESTM_CH_MES))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(sum({&amp;lt;Mes, ESTM_MES={"$(= '&amp;gt;=' &amp;amp; '01' &amp;amp; '&amp;lt;=' &amp;amp;'02' )"}&amp;gt;} OCUPACION)/sum({&amp;lt;Mes, ESTM_MES={"$(= '&amp;gt;=' &amp;amp; '01' &amp;amp; '&amp;lt;=' &amp;amp;'02' )"}&amp;gt;} ESTM_CH_MES))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;+ if($(vMesSelec)&amp;lt; 02,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(sum( {&amp;lt;Mes, ESTM_MES={"$(= '&amp;gt;' &amp;amp; $(vMesSelec) &amp;amp; '&amp;lt;=' &amp;amp; '02')"}&amp;gt;} OCUPACION_PRESU)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/sum( {&amp;lt;Mes, ESTM_MES={"$(= '&amp;gt;' &amp;amp; $(vMesSelec) &amp;amp; '&amp;lt;=' &amp;amp; '02')"}&amp;gt;} PRESU_COCHES_MES))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,0)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, .......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 19:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-graph-aggr/m-p/774436#M274741</guid>
      <dc:creator />
      <dc:date>2015-02-23T19:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: YTD  graph aggr</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-graph-aggr/m-p/774437#M274742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please attach an example qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 19:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-graph-aggr/m-p/774437#M274742</guid>
      <dc:creator />
      <dc:date>2015-02-23T19:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: YTD  graph aggr</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-graph-aggr/m-p/774438#M274743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here there is a sample. It's important that the total in this case is not the result of the sum of rows. The total shows the average&amp;nbsp; of the total values, so TOTAL= SUM(ALL VALUES1) / SUM(ALL VALUES2). But the graph has to show the total for all countries (like the table). I tired Aggr and set analysis but it does not work.&lt;/P&gt;&lt;P&gt;The&amp;nbsp; calculation must be done online (not in etl).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 09:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-graph-aggr/m-p/774438#M274743</guid>
      <dc:creator />
      <dc:date>2015-02-24T09:29:25Z</dc:date>
    </item>
  </channel>
</rss>

