<?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 Aggregate dimension in Pivot on an expression with FirstSortedValue aggregated over a time period... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-dimension-in-Pivot-on-an-expression-with/m-p/1690369#M455718</link>
    <description>&lt;P&gt;I am trying to aggregate in a pivot on an expression that uses FirstSortedValue aggregated over a time period and a lower dimension.&lt;/P&gt;&lt;P&gt;This is the pivot where the expression “Projected_Inventory” is only showing the last value in the latest week, no matter if you collapse the week and only show the Year. &amp;nbsp;Product4 will only show the total as 5.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/31135i801DAB8F71FC076F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Expression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue(Aggr(Sum(Projected_Inventory), Week,Product), -Aggr(Week, Week,Product))&lt;/LI-CODE&gt;&lt;P&gt;The problem is when I try to collapse the dimension “Product” to only show “Product Type”. I want the expression to summarize the last week value for all the items in that Product Type. E.g&amp;nbsp; Product4 and Product3 should give the Type 2=14 in total value. I can do this by showing another chart and replace Product with Product Type in the expression, but it is not as nice and easy to work with as one dynamic table.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:55:04 GMT</pubDate>
    <dc:creator>SupplyAndDemand</dc:creator>
    <dc:date>2024-11-16T00:55:04Z</dc:date>
    <item>
      <title>Aggregate dimension in Pivot on an expression with FirstSortedValue aggregated over a time period...</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-dimension-in-Pivot-on-an-expression-with/m-p/1690369#M455718</link>
      <description>&lt;P&gt;I am trying to aggregate in a pivot on an expression that uses FirstSortedValue aggregated over a time period and a lower dimension.&lt;/P&gt;&lt;P&gt;This is the pivot where the expression “Projected_Inventory” is only showing the last value in the latest week, no matter if you collapse the week and only show the Year. &amp;nbsp;Product4 will only show the total as 5.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/31135i801DAB8F71FC076F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Expression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue(Aggr(Sum(Projected_Inventory), Week,Product), -Aggr(Week, Week,Product))&lt;/LI-CODE&gt;&lt;P&gt;The problem is when I try to collapse the dimension “Product” to only show “Product Type”. I want the expression to summarize the last week value for all the items in that Product Type. E.g&amp;nbsp; Product4 and Product3 should give the Type 2=14 in total value. I can do this by showing another chart and replace Product with Product Type in the expression, but it is not as nice and easy to work with as one dynamic table.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-dimension-in-Pivot-on-an-expression-with/m-p/1690369#M455718</guid>
      <dc:creator>SupplyAndDemand</dc:creator>
      <dc:date>2024-11-16T00:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate dimension in Pivot on an expression with FirstSortedValue aggregated over a time perio</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-dimension-in-Pivot-on-an-expression-with/m-p/1697684#M455719</link>
      <description>&lt;P&gt;I believe the following Design Blog post may be of some help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 12:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-dimension-in-Pivot-on-an-expression-with/m-p/1697684#M455719</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-04-29T12:01:30Z</dc:date>
    </item>
  </channel>
</rss>

