<?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: Pivot Table wrong total | Problem with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-wrong-total-Problem-with-expression/m-p/1726129#M452026</link>
    <description>&lt;P&gt;Your expression is not just a straight aggregation else some kind of rate with conditions. The dimensionality on which your conditions are based didn't exists / aren't properly applied in the total-calculation and therefore the total didn't show the sum of the displayed rows. To get this result you need to wrap your expression within an aggr() like:&lt;/P&gt;&lt;P&gt;sum(aggr(YourExpression, Dim1, Dim2))&lt;/P&gt;&lt;P&gt;whereby Dim1 und Dim2 are placeholder for the dimensional context on which the calculation should happens - usually it are the dimensions within your chart like Lender, Arbeits... but you may need further dimensions like period-fields or similar if they are essential in the calculation-context.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2020 13:51:58 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-07-08T13:51:58Z</dc:date>
    <item>
      <title>Pivot Table wrong total | Problem with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-wrong-total-Problem-with-expression/m-p/1725968#M452017</link>
      <description>&lt;P&gt;Hey&lt;BR /&gt;i have a problem with my expression.&lt;/P&gt;&lt;P&gt;I build an overview of who has lent whom for how many hours. This is used for internal billing.&lt;/P&gt;&lt;P&gt;However, I have an exception. If the lender and recipient have a certain constellation, the wage factor is at 13.5, otherwise at 18. In the picture you can see that my total is incorrect. I just don't come up with the solution in my formula.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if( /*Lender*/AbrechnungsDISPLAYNAME='MA Oldenburg' and /*Reciever*/ArbeitsDISPLAYNAME='CBC Oldenburg', 
  (ceil((sum({$&amp;lt;/*Dismiss Working Area */KLV_Master.datev_nr-={$(=1015)}&amp;gt;}/* Working Seconds */KLV_Master.gesamt_std_in_sek)/60/60),0.25)*/* Wage factor */13.5), 
  (ceil((sum({$&amp;lt;/*Dismiss Working Area */KLV_Master.datev_nr-={$(=1015)}&amp;gt;}/* Working Seconds */KLV_Master.gesamt_std_in_sek)/60/60),0.25)*/* Wage factor */18)) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The images:&lt;/P&gt;&lt;P&gt;1: The version i need for my further calc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2: Just to show my Problem&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-wrong-total-Problem-with-expression/m-p/1725968#M452017</guid>
      <dc:creator>dominikkeller</dc:creator>
      <dc:date>2024-11-16T00:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table wrong total | Problem with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-wrong-total-Problem-with-expression/m-p/1726129#M452026</link>
      <description>&lt;P&gt;Your expression is not just a straight aggregation else some kind of rate with conditions. The dimensionality on which your conditions are based didn't exists / aren't properly applied in the total-calculation and therefore the total didn't show the sum of the displayed rows. To get this result you need to wrap your expression within an aggr() like:&lt;/P&gt;&lt;P&gt;sum(aggr(YourExpression, Dim1, Dim2))&lt;/P&gt;&lt;P&gt;whereby Dim1 und Dim2 are placeholder for the dimensional context on which the calculation should happens - usually it are the dimensions within your chart like Lender, Arbeits... but you may need further dimensions like period-fields or similar if they are essential in the calculation-context.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 13:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-wrong-total-Problem-with-expression/m-p/1726129#M452026</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-07-08T13:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table wrong total | Problem with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-wrong-total-Problem-with-expression/m-p/1726190#M452037</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked perfect with the Dim's Lender and Reciever.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 16:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-wrong-total-Problem-with-expression/m-p/1726190#M452037</guid>
      <dc:creator>dominikkeller</dc:creator>
      <dc:date>2020-07-08T16:17:43Z</dc:date>
    </item>
  </channel>
</rss>

