<?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 Using Aggr and Rank in Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-Aggr-and-Rank-in-Set-Analysis/m-p/1884605#M72866</link>
    <description>&lt;P&gt;The following measure successfully creates a field called Rank that ranks multiple lines within a Quote based on&amp;nbsp;Quote Extended Price. I need to use the table where this is in to send out an NPrinting report with a filter on Rank = 1. However, as far as I can tell, we cannot use a calculated dimension in a filter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aggr(Rank(Sum({&amp;lt;[Quote Date]={"$(=Date(Today()-1))"},[Intercompany Flag]={'$(vIntercompany)'}, DateType={'Quote Date'}&amp;gt;}[Quote Extended Price]),2,2), [Quote Number],[%ItemKey])&lt;/P&gt;
&lt;P&gt;My next thought was that I have to integrate above aggr/rank code into the other measure called "Amount" that I have in the table in order to limit the data to Rank = 1.&lt;/P&gt;
&lt;P&gt;The measure is: Sum({&amp;lt;[Quote Date]={"$(=Date(Today()-1))"},[Intercompany Flag]={'$(vIntercompany)'}, DateType={'Quote Date'}&amp;gt;}[Quote Extended Price])&lt;/P&gt;
&lt;P&gt;Please let me know if this is possible or if there is a better way to achieve this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 15:29:45 GMT</pubDate>
    <dc:creator>ManuelLindekeit</dc:creator>
    <dc:date>2022-01-24T15:29:45Z</dc:date>
    <item>
      <title>Using Aggr and Rank in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Aggr-and-Rank-in-Set-Analysis/m-p/1884605#M72866</link>
      <description>&lt;P&gt;The following measure successfully creates a field called Rank that ranks multiple lines within a Quote based on&amp;nbsp;Quote Extended Price. I need to use the table where this is in to send out an NPrinting report with a filter on Rank = 1. However, as far as I can tell, we cannot use a calculated dimension in a filter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aggr(Rank(Sum({&amp;lt;[Quote Date]={"$(=Date(Today()-1))"},[Intercompany Flag]={'$(vIntercompany)'}, DateType={'Quote Date'}&amp;gt;}[Quote Extended Price]),2,2), [Quote Number],[%ItemKey])&lt;/P&gt;
&lt;P&gt;My next thought was that I have to integrate above aggr/rank code into the other measure called "Amount" that I have in the table in order to limit the data to Rank = 1.&lt;/P&gt;
&lt;P&gt;The measure is: Sum({&amp;lt;[Quote Date]={"$(=Date(Today()-1))"},[Intercompany Flag]={'$(vIntercompany)'}, DateType={'Quote Date'}&amp;gt;}[Quote Extended Price])&lt;/P&gt;
&lt;P&gt;Please let me know if this is possible or if there is a better way to achieve this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 15:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Aggr-and-Rank-in-Set-Analysis/m-p/1884605#M72866</guid>
      <dc:creator>ManuelLindekeit</dc:creator>
      <dc:date>2022-01-24T15:29:45Z</dc:date>
    </item>
  </channel>
</rss>

