<?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: Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507553#M751975</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It depends what the cause of this is &amp;amp; how the rest of the reporting on this model is supposed to behave.&lt;/P&gt;&lt;P&gt;First thing to check is it valid for buyback_id to have 2 dates, or has something gone wrong in the production of the table in the model to introduce incorrect additional rows.&lt;/P&gt;&lt;P&gt;If it is valid then you need a business rule for what to do in these circumstances for this aggregation, for example;&lt;/P&gt;&lt;P&gt;1) Use the last FP, or,&lt;/P&gt;&lt;P&gt;2) Use the first FP, or,&lt;/P&gt;&lt;P&gt;3) Apportion across the different FP&lt;/P&gt;&lt;P&gt;When you know that you would have to think is (a) you want to fix in script (say by tagging items in Ledger table with a flag &amp;amp; including that flag in the formula), or (b) if a more complex formula would do it -&amp;nbsp;say it is only here where&amp;nbsp;the issue needs fixed.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2018 19:54:18 GMT</pubDate>
    <dc:creator>chrismarlow</dc:creator>
    <dc:date>2018-11-15T19:54:18Z</dc:date>
    <item>
      <title>Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507351#M751965</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;When I select fiscal year and fiscal period 1-9 as a group I get a total of 3,596,680. However, when I select&amp;nbsp; fiscal year and fiscal period 1-9 are selected individually, they total 4,157,575. Please let me know how I can fix this issue&lt;/P&gt;&lt;P&gt;My expression is:&lt;/P&gt;&lt;P&gt;=sum(cash_price)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 411px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/334iA9B34D0382A7D9AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507351#M751965</guid>
      <dc:creator>has75042</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507360#M751966</link>
      <description>Not sure I follow the difference in selection... what do you mean when you select fiscal year and fiscal period as a group?</description>
      <pubDate>Thu, 15 Nov 2018 14:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507360#M751966</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-15T14:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507361#M751967</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maybe a duplicate somehow&amp;nbsp;between your dates and your facts (assuming you have a date table separate).&lt;/P&gt;&lt;P&gt;Can you post an image/values for a straight table with&amp;nbsp;fiscal_period/year as dimensions and sum(cash_price) as expression?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 14:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507361#M751967</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-15T14:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507362#M751968</link>
      <description>&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;fiscal year 2019&lt;/P&gt;&lt;P&gt;fiscal year 1-9 all at once&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 14:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507362#M751968</guid>
      <dc:creator>has75042</dc:creator>
      <dc:date>2018-11-15T14:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507376#M751969</link>
      <description>&lt;P&gt;when you add all them in excel total comes upto be 4,157,575.00&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 321px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/340i1AEF92EE3F4993F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 15:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507376#M751969</guid>
      <dc:creator>has75042</dc:creator>
      <dc:date>2018-11-15T15:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507445#M751970</link>
      <description>&lt;P&gt;Please can put a picture of your data model (control-t) should do it.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 16:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507445#M751970</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-15T16:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507447#M751971</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 917px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/350i79FECEDCFD712E56/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 16:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507447#M751971</guid>
      <dc:creator>has75042</dc:creator>
      <dc:date>2018-11-15T16:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507479#M751972</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I &lt;EM&gt;think&lt;/EM&gt; you have a buyback_id that appears with more than one Dateonly - where the date then sits in a different fiscal period/year.&lt;/P&gt;&lt;P&gt;So I can create a toy model with similar structure &amp;amp; make the data do that (attached, but I am on personal edition) and so come up with a non summing straight table (left);&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="364935.png" style="width: 906px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/359i6FE363E3B8F64A14/image-size/large?v=v2&amp;amp;px=999" role="button" title="364935.png" alt="364935.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Possibly you could add something like the grid on the right &amp;amp; see if you get count distinct&amp;gt;1?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 17:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507479#M751972</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-15T17:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507544#M751973</link>
      <description>&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somehow I can't open this QW&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 19:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507544#M751973</guid>
      <dc:creator>has75042</dc:creator>
      <dc:date>2018-11-15T19:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507549#M751974</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 428px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/370iB76E8E38C3AAA41E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You are right it does show in two fiscal period. Is there a way to fix this issue&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 19:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507549#M751974</guid>
      <dc:creator>has75042</dc:creator>
      <dc:date>2018-11-15T19:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507553#M751975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It depends what the cause of this is &amp;amp; how the rest of the reporting on this model is supposed to behave.&lt;/P&gt;&lt;P&gt;First thing to check is it valid for buyback_id to have 2 dates, or has something gone wrong in the production of the table in the model to introduce incorrect additional rows.&lt;/P&gt;&lt;P&gt;If it is valid then you need a business rule for what to do in these circumstances for this aggregation, for example;&lt;/P&gt;&lt;P&gt;1) Use the last FP, or,&lt;/P&gt;&lt;P&gt;2) Use the first FP, or,&lt;/P&gt;&lt;P&gt;3) Apportion across the different FP&lt;/P&gt;&lt;P&gt;When you know that you would have to think is (a) you want to fix in script (say by tagging items in Ledger table with a flag &amp;amp; including that flag in the formula), or (b) if a more complex formula would do it -&amp;nbsp;say it is only here where&amp;nbsp;the issue needs fixed.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 19:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/1507553#M751975</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-15T19:54:18Z</dc:date>
    </item>
  </channel>
</rss>

