<?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: YearMonth adjustment in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YearMonth-adjustment/m-p/137190#M761687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, can't you just tell the calculations to ignore SalesYearMonth selection in the set-expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;SalesYearMonth = &amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2018 13:13:12 GMT</pubDate>
    <dc:creator>niclaz79</dc:creator>
    <dc:date>2018-08-14T13:13:12Z</dc:date>
    <item>
      <title>YearMonth adjustment</title>
      <link>https://community.qlik.com/t5/QlikView/YearMonth-adjustment/m-p/137189#M761686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find attched the table below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qqqqqqqqqqqqqqqqqq.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/210791_qqqqqqqqqqqqqqqqqq.PNG" style="height: 260px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The average is calculated with this formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(sum(SalesActualSales)/count (DISTINCT SalesYearMonth),SalesAggregatedBrand_CD, SalesSubsidiaryCode_CD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Standard deviation: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(sum(SalesActualSales)=0,0, Stdev([SalesActualSales])).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The coefficient of variation: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=if(sum(SalesActualSales)=0,0, Stdev([SalesActualSales]))/&lt;SPAN style="font-size: 13.3333px;"&gt;aggr(sum(SalesActualSales)/count (DISTINCT SalesYearMonth),SalesAggregatedBrand_CD, SalesSubsidiaryCode_CD).&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;The Sub/aggr brand accuracy:&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;= If ((1- (sum (fabs(aggr(sum ([SalesActualSales])&lt;/P&gt;&lt;P&gt;, SalesSubsidiaryCode_CD, SalesAggregatedBrand_CD,SalesYearMonth) - &lt;/P&gt;&lt;P&gt;aggr(sum ([SalesForecastM-2]), SalesSubsidiaryCode_CD, SalesAggregatedBrand_CD,SalesYearMonth)))/sum(aggr(sum([SalesActualSales]),&lt;/P&gt;&lt;P&gt;SalesSubsidiaryCode_CD, SalesAggregatedBrand_CD,SalesYearMonth ))) &amp;lt; 0 &lt;/P&gt;&lt;P&gt;or sum(aggr(sum([SalesActualSales]), SalesSubsidiaryCode_CD, SalesAggregatedBrand_CD&lt;/P&gt;&lt;P&gt;,SalesYearMonth))= 0),0&lt;/P&gt;&lt;P&gt;,1- (sum (fabs(aggr(sum ([SalesActualSales]), SalesSubsidiaryCode_CD, &lt;/P&gt;&lt;P&gt;SalesAggregatedBrand_CD,SalesYearMonth) &lt;/P&gt;&lt;P&gt;- aggr(sum ([SalesForecastM-2]), SalesSubsidiaryCode_CD, SalesAggregatedBrand_CD,&lt;/P&gt;&lt;P&gt;SalesYearMonth)))&lt;/P&gt;&lt;P&gt;/sum(aggr(sum([SalesActualSales]), SalesSubsidiaryCode_CD, &lt;/P&gt;&lt;P&gt;SalesAggregatedBrand_CD,SalesYearMonth )))).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want to do is to show the accuracy value of a specific period let says july 2018 but when i choose this period the actual sales [column 2] will change its value to the actual sales of july and the average will be equal to the actual sales because in the formula of the average the number of periods will be counted and because i selected one period this number will equal to 1 that's why the average equal to the actual sales. This is my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other terms, i want it to return the actual sales, the average, the standard deviation, the coefficient of variation with the current selection but with the selection in period which is here SalesYearMonth removed. (values do not depend on the selection period). In contrast, for accuracy values, i want to be changed according to the current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alâa Eddine.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YearMonth-adjustment/m-p/137189#M761686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: YearMonth adjustment</title>
      <link>https://community.qlik.com/t5/QlikView/YearMonth-adjustment/m-p/137190#M761687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, can't you just tell the calculations to ignore SalesYearMonth selection in the set-expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;SalesYearMonth = &amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 13:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YearMonth-adjustment/m-p/137190#M761687</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2018-08-14T13:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: YearMonth adjustment</title>
      <link>https://community.qlik.com/t5/QlikView/YearMonth-adjustment/m-p/137191#M761688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;yes, i tried it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Alâa Eddine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 13:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YearMonth-adjustment/m-p/137191#M761688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-14T13:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: YearMonth adjustment</title>
      <link>https://community.qlik.com/t5/QlikView/YearMonth-adjustment/m-p/137192#M761689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! Can you please mark my answer as correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 13:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YearMonth-adjustment/m-p/137192#M761689</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2018-08-14T13:25:32Z</dc:date>
    </item>
  </channel>
</rss>

