<?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: Expression total using aggr() and SUM() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1550810#M440251</link>
    <description>&lt;P&gt;Hey Vidja,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could only solve the first case of the sum of the columns but not the other.&lt;BR /&gt;the problem is that the aggr function to get the calculation to remove the dimension loses meaning, then you have to modify the expression.&lt;BR /&gt;Can you explain how you get the hours of the orders that take more than one day? and how do you drive on weekends?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sin título.png" style="width: 565px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7026iC94079B01237C974/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sin título.png" alt="Sin título.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;do this in the expression of the graph and you will have the sum of the values&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sin título2.png" style="width: 812px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7027iD5DCBE70C84A753E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sin título2.png" alt="Sin título2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 22:14:13 GMT</pubDate>
    <dc:creator>tincholiver</dc:creator>
    <dc:date>2019-02-28T22:14:13Z</dc:date>
    <item>
      <title>Expression total using aggr() and SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1550710#M440244</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to calculate the total number of orders who average time is less than 5 hours (300 minutes). However, it does not get reflected in expression total in straight box.&lt;/P&gt;&lt;P&gt;So, i have a straight table like the following: It has no dimensions but only measures:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Avg Time&lt;/TD&gt;&lt;TD&gt;No of orders&lt;/TD&gt;&lt;TD&gt;Orders &amp;lt; 5 hours&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1880&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0 (need help here)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column "Orders &amp;lt;5 hours" is incorrect. Because i do have orders with avg time less than 5 hours.&lt;/P&gt;&lt;P&gt;This is the other straight table with order number as dimension. In this table, the column under 5 hours gives me right values but does not give sum in the expression total.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;OrderNumber&lt;/TD&gt;&lt;TD&gt;Time&lt;/TD&gt;&lt;TD&gt;Under 5 hours&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1880 (expression total)&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0 (expression total) Need help here&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1128365&lt;/TD&gt;&lt;TD&gt;108&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1128366&lt;/TD&gt;&lt;TD&gt;768&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1128368&lt;/TD&gt;&lt;TD&gt;768&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1128369&lt;/TD&gt;&lt;TD&gt;11988&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1129280&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1129281&lt;/TD&gt;&lt;TD&gt;1192&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1129284&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1129285&lt;/TD&gt;&lt;TD&gt;172&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These 2 straight tables can be seen in then file attached. &amp;nbsp;have attached the qlikview file for reference.&lt;/P&gt;&lt;P&gt;can someone please help me on this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Vidya&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1550710#M440244</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2024-11-16T04:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expression total using aggr() and SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1550719#M440245</link>
      <description>&lt;P&gt;you need expression time in the second graph.&lt;/P&gt;&lt;P&gt;I don´t know if it´s the result that you have looking for.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 19:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1550719#M440245</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-28T19:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression total using aggr() and SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1550728#M440246</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need two things here:&lt;/P&gt;&lt;P&gt;1.In the first straight table with "order number" as dimensions, i want expression total in the column "Under 5 hours"&lt;/P&gt;&lt;P&gt;If you see from the straight table with order number as dimensions, if you sum the column values of "under 5 hours", it should be 4 which should be expression total. ( it is not currently shown)&lt;/P&gt;&lt;P&gt;2. In the second straight table, i would like to have the same value in the column " under 5 hours" but with no dimension. So, basically aggregating it by dimension.&lt;/P&gt;&lt;P&gt;Let me know if you understood my questions.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vidya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 19:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1550728#M440246</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2019-02-28T19:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Expression total using aggr() and SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1550810#M440251</link>
      <description>&lt;P&gt;Hey Vidja,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could only solve the first case of the sum of the columns but not the other.&lt;BR /&gt;the problem is that the aggr function to get the calculation to remove the dimension loses meaning, then you have to modify the expression.&lt;BR /&gt;Can you explain how you get the hours of the orders that take more than one day? and how do you drive on weekends?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sin título.png" style="width: 565px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7026iC94079B01237C974/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sin título.png" alt="Sin título.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;do this in the expression of the graph and you will have the sum of the values&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sin título2.png" style="width: 812px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7027iD5DCBE70C84A753E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sin título2.png" alt="Sin título2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 22:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1550810#M440251</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-02-28T22:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression total using aggr() and SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1550837#M440254</link>
      <description>&lt;P&gt;Vidja,&amp;nbsp;&lt;/P&gt;&lt;P&gt;can solve what you wanted even though I made some modifications in the script to be able to solve it more easily.&lt;BR /&gt;I do not know if it will serve you as I did but the result is the same&lt;BR /&gt;tell me if it served you&lt;BR /&gt;regards.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Under 5.png" style="width: 662px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7031iBFDC81EC82CE63C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Under 5.png" alt="Under 5.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 00:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1550837#M440254</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-03-01T00:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression total using aggr() and SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1551009#M440269</link>
      <description>&lt;P&gt;Hi Poluvidyasagar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for your second question the answer is&lt;/P&gt;&lt;P&gt;Sum(Aggr(Only(If(Time/60 &amp;lt;= 5, 1, 0)), OrderNumber))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy Qliking&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 10:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1551009#M440269</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2019-03-01T10:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Expression total using aggr() and SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1551061#M440276</link>
      <description>&lt;P&gt;Hi Veidlburkhard,&lt;/P&gt;&lt;P&gt;This expression does not give me the results i need. It still gives me zero.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot.PNG" style="width: 595px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7068i8E21574A2AA93FDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot.PNG" alt="Screenshot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Vidya&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1551061#M440276</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2019-03-01T12:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Expression total using aggr() and SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1551071#M440278</link>
      <description>&lt;P&gt;Hi Tincholiver,&lt;/P&gt;&lt;P&gt;I know this feature using "Sum" in total mode. However, i would this to be calculated using total expression.&lt;/P&gt;&lt;P&gt;Because what works for question 1 should work for question 2.&lt;/P&gt;&lt;P&gt;You have mentioned that "&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;aggr function to get the calculation to remove the dimension loses meaning&lt;/STRONG&gt;". Can you elaborate on this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Vidya&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1551071#M440278</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2019-03-01T12:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression total using aggr() and SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1551074#M440279</link>
      <description>Hi Tincholiver,&lt;BR /&gt;&lt;BR /&gt;The data provided in the problem is simple. But, I have complex data which needs lot of set analysis. I have not provided those details here.&lt;BR /&gt;&lt;BR /&gt;I am sure we can solve the problem the way u did but i would like this to be done on the chart script.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vidya</description>
      <pubDate>Fri, 01 Mar 2019 12:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1551074#M440279</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2019-03-01T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Expression total using aggr() and SUM()</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1551139#M440291</link>
      <description>&lt;P&gt;I was referring to that in the Time expression, the number of orders will result in 4 having dimension to OrderNumber, if you remove that dimension the result is 1880, then the expression = if ([Time] &amp;lt;300,1,0) is working well only that it does not find any value that fulfills that condition that's why it gives zero&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 14:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-total-using-aggr-and-SUM/m-p/1551139#M440291</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2019-03-01T14:10:46Z</dc:date>
    </item>
  </channel>
</rss>

