<?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: Nested Aggregation not allowed in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509959#M104788</link>
    <description>&lt;P&gt;Maybe I misunderstand what it is you want, I thought you needed to sum values for all dates greater than or equal to the date that was a few days ago.&lt;/P&gt;&lt;P&gt;Maybe you should try something simpler first, in a straight table instead of a pivot table, to see when calculations work and when they start to go wrong. And perhaps try something without the aggr wrapping. Also, I don't know what S_date_and_time contains, if those dates are linked to the other periods (related to vDateIndex) that could be where this goes wrong. And you have WorkDate in the aggr function, how is that date field related to everything else?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2025 12:40:05 GMT</pubDate>
    <dc:creator>henrikalmen</dc:creator>
    <dc:date>2025-03-14T12:40:05Z</dc:date>
    <item>
      <title>Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509752#M104752</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;Trying to write some set analysis, but getting this error if someone can advise how to fix &amp;amp; why it's going wrong.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sum({$&amp;lt;[Date Index] =,  [Date Index] = {"$(=$(vDateIndex))"}&amp;gt;}((max(S_date_and_time) - min(S_date_and_time)) * 24))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;vDateIndex is a variable set when a user makes a selection, and I need to return the result of&lt;/P&gt;&lt;P&gt;((max(S_date_and_time) - min(S_date_and_time)) * 24)&lt;/P&gt;&lt;P&gt;For the date selected (minus 2 days)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 13:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509752#M104752</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-03-13T13:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509763#M104754</link>
      <description>&lt;P&gt;I've progressed it, but I'm not getting the expected results.&lt;/P&gt;&lt;P&gt;If I select 10/03/2025 (vDateIndex = 1353) - I want to see the data from 08/03/2025 (vDateIndex = 1351), but it is still showing me 10/03/2025.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sum({1&amp;lt;[CDayIndex]  =, [CDayIndex]  = {$(=$(vDateIndex)-2)}&amp;gt;} aggr(((max(S_date_and_time) - min(S_date_and_time)) * 24),S_employee_id))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though the expression editor shows it to be working ok?!?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_0-1741872880568.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178537iBD3F51A0AF71F9D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_0-1741872880568.png" alt="Oggy172_0-1741872880568.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Returning 07:57&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_1-1741874231028.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178539i8994DA4B18EB297D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_1-1741874231028.png" alt="Oggy172_1-1741874231028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Which is the data for 10/03/2025 (1353)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_2-1741874322440.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178540i66F22328A984BE0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_2-1741874322440.png" alt="Oggy172_2-1741874322440.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 13:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509763#M104754</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-03-13T13:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509816#M104763</link>
      <description>&lt;LI-CODE lang="markup"&gt;sum({1&amp;lt;[[CDayIndex]  = {"&amp;gt;=$(=$(vDateIndex)-2)"}&amp;gt;} aggr(((max(S_date_and_time) - min(S_date_and_time)) * 24),S_employee_id))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Mar 2025 17:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509816#M104763</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2025-03-13T17:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509937#M104781</link>
      <description>&lt;P&gt;No dice I'm afraid.&lt;/P&gt;&lt;P&gt;10/03/2025 selected&lt;/P&gt;&lt;P&gt;-6 days&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_2-1741952628268.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178589i36C5F9C4115ECB9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_2-1741952628268.png" alt="Oggy172_2-1741952628268.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and -2 Days, provide the same data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_0-1741952496632.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178587i2C7102006DF559AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_0-1741952496632.png" alt="Oggy172_0-1741952496632.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 11:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509937#M104781</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-03-14T11:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509953#M104784</link>
      <description>&lt;P&gt;Did you possibly forget a character? [CDayIndex]={"&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;=$(=$(vDateIndex)-2)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;You may also need to set&amp;nbsp; &lt;EM&gt;CDisplayDate=&lt;/EM&gt;&amp;nbsp;within the set expression, so that the selected value in that field doesn't apply.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 12:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509953#M104784</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2025-03-14T12:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509954#M104785</link>
      <description>&lt;P&gt;I removed that as I don't want greater than or equal to? Only equal to?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 12:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509954#M104785</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-03-14T12:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509957#M104786</link>
      <description>&lt;P&gt;Edited to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&lt;FONT color="#0000FF"&gt;$&lt;/FONT&gt;&amp;lt;CDisplayDate=, [CFiscal Week]=, [CDayIndex] = {"&amp;gt;=$(=$(vDateIndex)-&lt;FONT color="#FF0000"&gt;5&lt;/FONT&gt;)"}&amp;gt;} aggr(((max(S_date_and_time) - min(S_date_and_time)) * 24),S_employee_id,WorkDate))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&lt;FONT color="#0000FF"&gt;1&lt;/FONT&gt;&amp;lt;CDisplayDate=, [CFiscal Week]=, [CDayIndex] = {"&amp;gt;=$(=$(vDateIndex)-&lt;FONT color="#FF0000"&gt;5&lt;/FONT&gt;)"}&amp;gt;} aggr(((max(S_date_and_time) - min(S_date_and_time)) * 24),S_employee_id,WorkDate))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&lt;FONT color="#0000FF"&gt;$&lt;/FONT&gt;&amp;lt;CDisplayDate=, [CFiscal Week]=, [CDayIndex] = {"&amp;gt;=$(=$(vDateIndex)-&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt;)"}&amp;gt;} aggr(((max(S_date_and_time) - min(S_date_and_time)) * 24),S_employee_id,WorkDate))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&lt;FONT color="#0000FF"&gt;1&lt;/FONT&gt;&amp;lt;CDisplayDate=, [CFiscal Week]=, [CDayIndex] = {"&amp;gt;=$(=$(vDateIndex)-&lt;FONT color="#FF0000"&gt;2&lt;/FONT&gt;)"}&amp;gt;} aggr(((max(S_date_and_time) - min(S_date_and_time)) * 24),S_employee_id,WorkDate))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I get the same results every time&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 12:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509957#M104786</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-03-14T12:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509959#M104788</link>
      <description>&lt;P&gt;Maybe I misunderstand what it is you want, I thought you needed to sum values for all dates greater than or equal to the date that was a few days ago.&lt;/P&gt;&lt;P&gt;Maybe you should try something simpler first, in a straight table instead of a pivot table, to see when calculations work and when they start to go wrong. And perhaps try something without the aggr wrapping. Also, I don't know what S_date_and_time contains, if those dates are linked to the other periods (related to vDateIndex) that could be where this goes wrong. And you have WorkDate in the aggr function, how is that date field related to everything else?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 12:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509959#M104788</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2025-03-14T12:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509965#M104789</link>
      <description>&lt;P&gt;Yes, you've misunderstood.&lt;/P&gt;&lt;P&gt;I need to review hours worked for 6 days previous to a selected date (CDisplayDate)&lt;/P&gt;&lt;P&gt;CDisplayDate, when set, will trigger a variable to be set:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_0-1741956220525.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178594iD0DBCBBE8FA790BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_0-1741956220525.png" alt="Oggy172_0-1741956220525.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I then need to look back 6 days from the selected CDisplayDate and return the hours worked.&lt;/P&gt;&lt;P&gt;For example, I built this based on Today() and not a Selected Date, so it will always look back 6 days from today.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_1-1741956406514.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178595i33ED091BB226034A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_1-1741956406514.png" alt="Oggy172_1-1741956406514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reference to WorkDate is just from a copy / paste of an existing chart where WorkDate is a dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The one for Today() uses teh aggr and it worked fine, so i expected it to also work when I'm only changing the CDayIndex part.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sum(if([CDayIndex] = $(vTodayIndex) - 6, aggr(((max(S_date_and_time) - min(S_date_and_time)) * 24),S_employee_id) , null()))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;S_date_and_time are the clocking records (DD/MM/YYYY hh:mm:00)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_2-1741956959889.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178596iE179752C0EBC9CBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_2-1741956959889.png" alt="Oggy172_2-1741956959889.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Swipes.Day Index] is left joined from [ClockingsCalendar.CDayIndex] on WorkDate&lt;/P&gt;&lt;P&gt;The Data model is as below, everything on the right is linked to the Employee's table, and not used (Employee is the last table used, for their names)&lt;/P&gt;&lt;P&gt;Everythig in the Pivot is on the left side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_3-1741957104251.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178597i9E7CCC3EFA872D1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_3-1741957104251.png" alt="Oggy172_3-1741957104251.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 12:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509965#M104789</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-03-14T12:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509970#M104790</link>
      <description>&lt;P&gt;Each aggregation-part may need an appropriate defined selection state which may look (simplified) like:&lt;/P&gt;&lt;P&gt;sum({ Set } aggr({ Set } max({ Set } - min({ Set }), Dim1, Dim2))&lt;/P&gt;&lt;P&gt;Beside the above you may to consider to transfer some of the logic into the data-model, for example by flagging the first and/or last record respectively all records and/or numbering them and/or adding a accumulation and then the expression may simply look like:&lt;/P&gt;&lt;P&gt;sum({ &amp;lt; LastAccumulatedRecord = {1}&amp;gt;} WorkingTime)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 13:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509970#M104790</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-03-14T13:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509976#M104792</link>
      <description>&lt;P&gt;Assuming I've understood you correctly, this still returns the same data:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sum({$&amp;lt;CDisplayDate=, [CFiscal Week]=, [CDayIndex]  = {"=$(=$(vDateIndex)-2)"}&amp;gt;} 
aggr({$&amp;lt;CDisplayDate=, [CFiscal Week]=, [CDayIndex]  = {"=$(=$(vDateIndex)-2)"}&amp;gt;}
((max({$&amp;lt;CDisplayDate=, [CFiscal Week]=, [CDayIndex]  = {"=$(=$(vDateIndex)-2)"}&amp;gt;}S_date_and_time) - 
min({$&amp;lt;CDisplayDate=, [CFiscal Week]=, [CDayIndex]  = {"=$(=$(vDateIndex)-2)"}&amp;gt;}S_date_and_time)) * 24),S_employee_id))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Mar 2025 13:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509976#M104792</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-03-14T13:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509983#M104795</link>
      <description>&lt;P&gt;By looking on your data-model I have serious doubts that's suitable for the wanted views. Your statement that the shown left and right side are irrelevant to each other is quite likely not the case and each part will impact the others. Further noticeable is that many tables are associated against a link-table which is a quite complex approach because it's not trivial to create all key-fields properly by ensuring that all needed key-values exists.&lt;/P&gt;&lt;P&gt;Therefore I suggest to go a few steps back and removing the entire set analysis stuff to see if the main-calculation is working against various selections in the filter-panes. In this regard it may also be useful to add the min/max/sum as plain-aggregations in parallel and/or adding the dayindex and the employee as further dimensions. Each single one must be working for themselves - and you might discover that the single aggr-dimension may not enough else it might also any period-dimension. If yes, they could be combined again + getting more complexity with the conditions - step by step. If not, you should apply all relevant fields + a definitely unique key within a table-box, to see all existing data with their associations to each other.&lt;/P&gt;&lt;P&gt;Like already hinted above I think you should move (much) more logic into the data-model to simplify the UI.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 14:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509983#M104795</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-03-14T14:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509987#M104796</link>
      <description>&lt;P&gt;I get the exact same behavior with the right tables dropped, so I don't think they are influencing it. We can agree to disagree on that point.&lt;/P&gt;&lt;P&gt;They are now dropped while I work on this, so they won't be impacting it in any way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I hardcode the DayIndex, it works fine&lt;/P&gt;&lt;P&gt;{1352}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_0-1741964529929.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178605iEB3F550182993E75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_0-1741964529929.png" alt="Oggy172_0-1741964529929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;{1353}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_2-1741964644084.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178607iA0DC9E3004E0B3BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_2-1741964644084.png" alt="Oggy172_2-1741964644084.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it's got to be a combination of using aggr() with Set Analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 15:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2509987#M104796</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-03-14T15:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510153#M104831</link>
      <description>&lt;P&gt;If you replace the variable with a fixed value and getting the wanted results it means that the variable creation/call isn't suitable - assuming that the variable should have a return of 1253 you may apply:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{$(=$(vDateIndex)-2)}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 07:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510153#M104831</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-03-17T07:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510248#M104854</link>
      <description>&lt;P&gt;Nope,&lt;/P&gt;&lt;P&gt;I still get the same value for every day (Except -4, but I suspect hours worked for that day are null)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_0-1742214019993.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178669i22981FDC56F0AFB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_0-1742214019993.png" alt="Oggy172_0-1742214019993.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 12:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510248#M104854</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-03-17T12:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510255#M104855</link>
      <description>&lt;P&gt;Are this n expressions and each one has the above variable-call unless the -n is different or is it a single expression against n dimension-values?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 12:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510255#M104855</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-03-17T12:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510257#M104856</link>
      <description>&lt;P&gt;It's just the same expression with a different offset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;[CDayIndex] = {$(=$(vDateIndex)-6)}&amp;gt;} aggr(((max(S_date_and_time) - min(S_date_and_time)) * 24),S_employee_id))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;[CDayIndex] = {$(=$(vDateIndex)-5)}&amp;gt;} aggr(((max(S_date_and_time) - min(S_date_and_time)) * 24),S_employee_id))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;[CDayIndex] = {$(=$(vDateIndex)-4)}&amp;gt;} aggr(((max(S_date_and_time) - min(S_date_and_time)) * 24),S_employee_id))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;etc..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 12:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510257#M104856</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-03-17T12:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510258#M104857</link>
      <description>&lt;P&gt;Possibly, your issue is this: "Set Analysis can't vary by chart row, because the set is computed only once, before the chart is calculated." I'm quoting&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;who wrote that &lt;A href="https://community.qlik.com/t5/App-Development/How-to-reference-a-field-in-the-current-row-of-a-straight-table/td-p/1885305" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 12:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510258#M104857</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2025-03-17T12:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510260#M104858</link>
      <description>&lt;P&gt;Ok. it are n different expressions - this part should be working. But especially the dimensions from the aggr() doesn't look suitable - only an employee and no period-information. This means the max-min is only performed against the employee with no other consideration of dimensions or conditions - unless the selection state.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 12:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510260#M104858</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-03-17T12:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Aggregation not allowed</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510263#M104859</link>
      <description>&lt;P&gt;Maybe you could try completely different expressions just to test the value of the set expression result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;concat({&lt;SPAN&gt;&amp;lt;[CDayIndex] = {$(=$(vDateIndex)-6)}&amp;gt;&lt;/SPAN&gt;}distinct CDayIndex)&lt;BR /&gt;concat({&lt;SPAN&gt;&amp;lt;[CDayIndex] = {$(=$(vDateIndex)-5)}&amp;gt;&lt;/SPAN&gt;}distinct CDayIndex)&lt;BR /&gt;concat({&lt;SPAN&gt;&amp;lt;[CDayIndex] = {$(=$(vDateIndex)-4)}&amp;gt;&lt;/SPAN&gt;}distinct CDayIndex)&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 13:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-Aggregation-not-allowed/m-p/2510263#M104859</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2025-03-17T13:03:24Z</dc:date>
    </item>
  </channel>
</rss>

