<?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 Problem with calculation / presentation of data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-calculation-presentation-of-data/m-p/189431#M52322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may be misunderstanding, or oversimplifying, but if you want your results displayed in a pivot table aggregated by day, why not create a pivot table, using your 'day' field as a dimension. You can then drag the day field to the top of the chart to have it display in columns, as youve indicated in your example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jun 2010 21:46:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-15T21:46:39Z</dc:date>
    <item>
      <title>Problem with calculation / presentation of data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-calculation-presentation-of-data/m-p/189429#M52320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please consider the following tables:&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" src="https://community.qlik.com/resized-image.ashx/__size/550x200/__key/CommunityServer.Discussions.Components.Files/11/8053.tables.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see the "Round Amount" column differs from one another. I can understand why this would happen (because the conditional statement I use to evaluate the calculation in the top table is being performed seperately for each zone (which is EXACTLY what i want, but with the bottom table it is being performed as a sum of all the records.&lt;/P&gt;&lt;P&gt;How it works:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A picker at our company picks goods to be delivered. Because some zones are more accessible than others, differt rates apply for each zone.&lt;/LI&gt;&lt;LI&gt;"Picks" is the amount of picks he has done. "Sum/Tar" is the amount of picks the picker should be able to do within the time he has been picking in the zone.&lt;/LI&gt;&lt;LI&gt;Now - for every pick over the target rate, we give him a 25c incentive. Thus the "Round Amount" column has the formula sum([PICKS]) - sum([SUM/TAR]) * 0.25&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you use this formula &amp;amp; apply it the tables above you will find that they are both correct. The problem is that I'm trying to create a table/pivot chart where my pickers will be one dimension &amp;amp; the other dimension will be the date picked. Such as:&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" src="https://community.qlik.com/resized-image.ashx/__size/550x150/__key/CommunityServer.Discussions.Components.Files/11/4721.result.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I want it to display like this is that now I can easily see how much money is being paid daily, as well as how much to pay a picker over a selected period of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY suggestions would be much appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.H.du Toit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 15:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-calculation-presentation-of-data/m-p/189429#M52320</guid>
      <dc:creator />
      <dc:date>2010-06-15T15:41:57Z</dc:date>
    </item>
    <item>
      <title>Problem with calculation / presentation of data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-calculation-presentation-of-data/m-p/189430#M52321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand you correctly,your problem is caused by rounding (and I still don't understand why the "Round Amount" is 0 in Zone 2L)...&lt;/P&gt;&lt;P&gt;In any case, you need to perform your calculation at a more detailed level and then present the summary of pre-calculated results in your Pivot Table. You can do it using Advanced Aggregation (function AGGR() ) - something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum ( AGGR( round( sum([PICKS]) - sum([SUM/TAR]) * 0.25, 0.01), Picker, Date, Zone))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, I added rounding to a penny, and pre-aggregated the results for Picker, Date and Zone. You can add more Dimensions if needed, just don't make it way too detailed. Once pre-aggregated and rounded at the lower level, the results can be then summarized to the higher levels (like Picker/Day and Picker)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 16:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-calculation-presentation-of-data/m-p/189430#M52321</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-06-15T16:42:18Z</dc:date>
    </item>
    <item>
      <title>Problem with calculation / presentation of data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-calculation-presentation-of-data/m-p/189431#M52322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may be misunderstanding, or oversimplifying, but if you want your results displayed in a pivot table aggregated by day, why not create a pivot table, using your 'day' field as a dimension. You can then drag the day field to the top of the chart to have it display in columns, as youve indicated in your example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 21:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-calculation-presentation-of-data/m-p/189431#M52322</guid>
      <dc:creator />
      <dc:date>2010-06-15T21:46:39Z</dc:date>
    </item>
    <item>
      <title>Problem with calculation / presentation of data</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-calculation-presentation-of-data/m-p/189432#M52323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;First of all thanks for the responses. Oleg's solution was the one I was looking for - thank you very much I appreciate it!! Seems I had abit of a warped understanding of the advanced aggregation function where I thought it could not be used accross multipledimensions, but your solution cleared that right up.&lt;/P&gt;&lt;P&gt;Thank you for your response as well Fry. I did know how to create the pivot table, but because of my calculation not being correct my totals on the pivot table would not add up when tested in excel.&lt;/P&gt;&lt;P&gt;For other people who might find use in this solution &amp;amp; to clarify Oleg's question. The reason why 2L &amp;amp; 2H has a round amount of R0.00 is because I forgot to mention that if [PICKS] - 20 &amp;lt; [SUM/TAR] the incentive equals 0.&lt;/P&gt;&lt;P&gt;Thanks again for your inputs!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 09:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-calculation-presentation-of-data/m-p/189432#M52323</guid>
      <dc:creator />
      <dc:date>2010-06-17T09:31:19Z</dc:date>
    </item>
  </channel>
</rss>

