<?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: Overall Calculation did not match when Week Added to Dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Overall-Calculation-did-not-match-when-Week-Added-to-Dimensions/m-p/1732237#M452360</link>
    <description>&lt;P&gt;Hi, hard to say, probably an aggr needs another field to correctly split values between weeks.&lt;/P&gt;&lt;P&gt;I would try to set eack KPI in a different expression to identify wich KPIs are returning an unexpected value.&lt;/P&gt;&lt;P&gt;Then split one of these KPIs in a expression for a numerator and another for denominator, seing the result probably gives you a hint of what is failing.&lt;/P&gt;&lt;P&gt;Or at least you can post again your results and we can try to fix a simpler expression than this one.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 18:33:57 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2020-07-30T18:33:57Z</dc:date>
    <item>
      <title>Overall Calculation did not match when Week Added to Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Overall-Calculation-did-not-match-when-Week-Added-to-Dimensions/m-p/1732219#M452349</link>
      <description>&lt;P&gt;Good Day All,&lt;/P&gt;&lt;P&gt;I am calculating 4 KPIs differently then taking their &lt;STRONG&gt;AERAGE&lt;/STRONG&gt; by using&amp;nbsp;&lt;FONT color="#0000FF"&gt;RangeAvg&amp;nbsp;&lt;FONT color="#000000"&gt;and it is showing perfectly fine percentage when I view it on Month basis (without any filter).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;The problem is when I add &lt;STRONG&gt;Week&amp;nbsp;&lt;/STRONG&gt;into dimensions the calculation disturbed and not showing correct result week wise.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="2" color="#0000FF"&gt;&lt;FONT color="#000000"&gt;=&lt;FONT color="#0000FF"&gt;num&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;RangeAvg&lt;/FONT&gt;(&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;count&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;if&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;KPI1_Compliance&lt;/FONT&gt;='C' &lt;FONT color="#0000FF"&gt;and&lt;/FONT&gt; &lt;FONT color="#993300"&gt;KPI1_Parameter&lt;/FONT&gt;='KPI1',&lt;FONT color="#993300"&gt;KPI1_Compliance&lt;/FONT&gt;))/&lt;FONT color="#0000FF"&gt;sum&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;Planned_Visits&lt;/FONT&gt;)&lt;BR /&gt;,&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;sum&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;aggr&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;If&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;count&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;distinct&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;if&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;KPI2_Parameter&lt;/FONT&gt;='KPI2' and &lt;FONT color="#993300"&gt;KPI2_Compliance&lt;/FONT&gt;='C',&lt;FONT color="#993300"&gt;Category&lt;/FONT&gt;))&amp;gt;=5,1,0),&lt;FONT color="#993300"&gt;KPI2_Visit_Type&lt;/FONT&gt;,&lt;FONT color="#993300"&gt;KPI2_Compliance&lt;/FONT&gt;))/&lt;BR /&gt;(&lt;FONT color="#0000FF"&gt;Sum&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;Aggr&lt;/FONT&gt;((&lt;FONT color="#0000FF"&gt;if&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;Store_category&lt;/FONT&gt;='Supermarket', &lt;FONT color="#993300"&gt;Planned_Visits&lt;/FONT&gt;)),&lt;FONT color="#993300"&gt;Storecode&lt;/FONT&gt;,&lt;FONT color="#993300"&gt;Date&lt;/FONT&gt;)))&lt;BR /&gt;,&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Sum&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;Aggr&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;Count&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;DISTINCT&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;if&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;KPI3_Parameter&lt;/FONT&gt;='KPI3' &lt;FONT color="#0000FF"&gt;and&lt;/FONT&gt; &lt;FONT color="#993300"&gt;KPI3_Compliance&lt;/FONT&gt;='C', &lt;FONT color="#993300"&gt;KPI3_Visit_Type&lt;/FONT&gt;)), &lt;FONT color="#993300"&gt;Storecode&lt;/FONT&gt;))/&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Sum&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;Aggr&lt;/FONT&gt;((&lt;FONT color="#0000FF"&gt;if&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;Store_category&lt;/FONT&gt;&amp;lt;&amp;gt;'Pharmacy', &lt;FONT color="#993300"&gt;Planned_Visits&lt;/FONT&gt;)),&lt;FONT color="#993300"&gt;Storecode&lt;/FONT&gt;,&lt;FONT color="#993300"&gt;Date&lt;/FONT&gt;))&lt;BR /&gt;,&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Sum&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;Aggr&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;Count&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;DISTINCT&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;if&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;KPI4_Parameter&lt;/FONT&gt;='KPI4' &lt;FONT color="#0000FF"&gt;and&lt;/FONT&gt; &lt;FONT color="#993300"&gt;KPI4_Compliance&lt;/FONT&gt;='C', &lt;FONT color="#993300"&gt;KPI4_Visit_Type&lt;/FONT&gt;)), &lt;FONT color="#993300"&gt;Storecode&lt;/FONT&gt;))/&lt;FONT color="#0000FF"&gt;Sum&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;Planned_Visits&lt;/FONT&gt;)&lt;BR /&gt;)&lt;BR /&gt;,&lt;BR /&gt;'#,##0%')&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="QlikView Issue 2.jpg" style="width: 338px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38366iD2797DFA74EB23DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="QlikView Issue 2.jpg" alt="QlikView Issue 2.jpg" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Overall-Calculation-did-not-match-when-Week-Added-to-Dimensions/m-p/1732219#M452349</guid>
      <dc:creator>danyal1990</dc:creator>
      <dc:date>2024-11-16T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Overall Calculation did not match when Week Added to Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Overall-Calculation-did-not-match-when-Week-Added-to-Dimensions/m-p/1732237#M452360</link>
      <description>&lt;P&gt;Hi, hard to say, probably an aggr needs another field to correctly split values between weeks.&lt;/P&gt;&lt;P&gt;I would try to set eack KPI in a different expression to identify wich KPIs are returning an unexpected value.&lt;/P&gt;&lt;P&gt;Then split one of these KPIs in a expression for a numerator and another for denominator, seing the result probably gives you a hint of what is failing.&lt;/P&gt;&lt;P&gt;Or at least you can post again your results and we can try to fix a simpler expression than this one.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 18:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Overall-Calculation-did-not-match-when-Week-Added-to-Dimensions/m-p/1732237#M452360</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-07-30T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Overall Calculation did not match when Week Added to Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Overall-Calculation-did-not-match-when-Week-Added-to-Dimensions/m-p/1732527#M452404</link>
      <description>&lt;P&gt;Thanks Ruben,&lt;/P&gt;&lt;P&gt;Solved it out by splitting all expressions into&amp;nbsp;&lt;SPAN&gt;numerator and another for denominator as you suggested.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 18:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Overall-Calculation-did-not-match-when-Week-Added-to-Dimensions/m-p/1732527#M452404</guid>
      <dc:creator>danyal1990</dc:creator>
      <dc:date>2020-07-31T18:45:16Z</dc:date>
    </item>
  </channel>
</rss>

