<?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: Summary Data Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272723#M849149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why you have to get 11246? Your Units Planned for Year 2016 has below possible data ? Do we have to consider something else? For year 2016 i have below units planned which sum up to - 8482.&lt;/P&gt;&lt;P&gt;844&lt;/P&gt;&lt;P&gt;890&lt;/P&gt;&lt;P&gt;907&lt;/P&gt;&lt;P&gt;922&lt;/P&gt;&lt;P&gt;937&lt;/P&gt;&lt;P&gt;952&lt;/P&gt;&lt;P&gt;968&lt;/P&gt;&lt;P&gt;984&lt;/P&gt;&lt;P&gt;1078&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Mar 2017 17:38:14 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2017-03-11T17:38:14Z</dc:date>
    <item>
      <title>Summary Data Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272722#M849148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have an requirement to show Current Month Plan Unit and Current Year Plan Units.&lt;/P&gt;&lt;P&gt;If user select Year = 2016 and Month = 5&lt;/P&gt;&lt;P&gt;then CMPlan Unit will show = Plan Units for Month 5 and CYPlan Unit should show plan units for 2016.&lt;/P&gt;&lt;P&gt;If I put Month, then it is showing Month Level data correct. But I need to show data in Item Level. Item level data is not showing correct data.&lt;/P&gt;&lt;P&gt;I am attaching qvw file. Please check the table in Sheet2 and the issue is in &lt;STRONG&gt;CYPlanUnits&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;for 2016 and Month =5 it should come as 11246, but it is coming as 8482.&lt;/P&gt;&lt;P&gt;we are using distinct, but that is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&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/Summary-Data-Issue/m-p/1272722#M849148</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Data Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272723#M849149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why you have to get 11246? Your Units Planned for Year 2016 has below possible data ? Do we have to consider something else? For year 2016 i have below units planned which sum up to - 8482.&lt;/P&gt;&lt;P&gt;844&lt;/P&gt;&lt;P&gt;890&lt;/P&gt;&lt;P&gt;907&lt;/P&gt;&lt;P&gt;922&lt;/P&gt;&lt;P&gt;937&lt;/P&gt;&lt;P&gt;952&lt;/P&gt;&lt;P&gt;968&lt;/P&gt;&lt;P&gt;984&lt;/P&gt;&lt;P&gt;1078&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2017 17:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272723#M849149</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-03-11T17:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Data Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272724#M849150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammad, having to sum 'distinct' values can lead to this kind of issues, where two same values that are equal but have to be summed, you can get a working expression using:&lt;/P&gt;&lt;P&gt;=sum(&lt;STRONG&gt;{&amp;lt;CstFiscalPeriod = ,CstFiscalYear = {'$(=$(vMaxYear))'}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;aggr(sum({&amp;lt;CstFiscalPeriod = ,CstFiscalYear = {'$(=$(vMaxYear))'}&amp;gt;} DISTINCT UnitsPlanned),ItemItemNo,ItemDesc,CstFiscalYear&lt;STRONG&gt;, CstFiscalPeriod&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way same values in different months can be summed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can avoid the duplicated rows and just do a sum (without 'distinct') it will be better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2017 18:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272724#M849150</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-03-11T18:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Data Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272725#M849151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ruben, I got what you mean. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Mar 2017 01:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272725#M849151</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-03-12T01:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Data Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272726#M849152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ruben sir..&lt;/P&gt;&lt;P&gt;seems this is working.&lt;/P&gt;&lt;P&gt;It would be really helpful if you can explain this expression.&lt;/P&gt;&lt;P&gt;I just copied blindly to meet the delivery deadline.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;But I want to make this my own next time. So need your guidance.&lt;/P&gt;&lt;P&gt;I will check thoroughly for other Item no also and will let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot sir..for your time and help..&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Mar 2017 03:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272726#M849152</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2017-03-12T03:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Data Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272727#M849153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammad, I added the period field to the aggr, so it sums the distinct values by each year and month, this is to sum equal values in different months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having this field in aggr will cause that the expression will be affected by selections in the Period field, to avoid this I also need to add the same set analysis to the external sum, so it does the operation for the max year and ignores selections in month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Mar 2017 21:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272727#M849153</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-03-12T21:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Data Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272728#M849154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ruben Sir,&lt;/P&gt;&lt;P&gt;I got the first part. But the external Set analysis is not clear to me.&lt;/P&gt;&lt;P&gt;Could you please explain it.&lt;/P&gt;&lt;P&gt;Thanks a lot for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 05:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summary-Data-Issue/m-p/1272728#M849154</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2017-03-13T05:53:21Z</dc:date>
    </item>
  </channel>
</rss>

