<?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: How to compare a single value dimension with aggr() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121638#M8458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I have a bunch of other dimensions and measures coming from different related tables (qvd files).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2018 11:41:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-27T11:41:02Z</dc:date>
    <item>
      <title>How to compare a single value dimension with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121635#M8455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find the latest product which is identified as the max product id group by season and Usage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to get the latest product by&amp;nbsp; &lt;EM&gt;Aggr(Max([product ID]),[Season],[Usage] ). &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Now when printing the data on a table I need to identify the&amp;nbsp; latest&amp;nbsp; product so I define a dimension as &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if &lt;/EM&gt;([&lt;EM&gt;product &lt;/EM&gt;ID] = (Aggr(Max([product ID]),[Season],[Usage] ))),'True','False').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this always prints false even when values for the &lt;EM&gt;product ID and agggr(--) are the same.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please see below the o/p for ref&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 519px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="19" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="113"&gt;Product ID&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="113"&gt;Latest?&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="113"&gt;=(Aggr(Max([Product ID]),[Season ],[Usage] ))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;66319200&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;False&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;96517654&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;70059823&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;False&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;96517654&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;79841275&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;False&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;96517654&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;79841838&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;False&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;96517654&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;62691415&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;False&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;96517654&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="19" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;&lt;SPAN style="color: #ff0000;"&gt;96517654&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;&lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;&lt;SPAN style="color: #ff0000;"&gt;96517654&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 23:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121635#M8455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-24T23:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a single value dimension with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121636#M8456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using this in a dimension or expression of your chart? Any other dimensions in your chart context?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Aug 2018 16:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121636#M8456</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-08-25T16:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a single value dimension with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121637#M8457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Hi Ravi, try to use &lt;STRONG&gt;TOTAL&lt;/STRONG&gt;&amp;nbsp; aggrigation&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;([&lt;/SPAN&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;product &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ID] = Max(TOTAL &amp;lt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Season],[Usage]&lt;/STRONG&gt;&amp;gt; [product ID]) ,'True','False')&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Aug 2018 11:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121637#M8457</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-08-26T11:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a single value dimension with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121638#M8458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I have a bunch of other dimensions and measures coming from different related tables (qvd files).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 11:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121638#M8458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-27T11:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a single value dimension with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121639#M8459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, Andrey!&lt;/P&gt;&lt;P&gt;This definitely works but I am unable to use it as Dimension. I had to add that as a measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I have this filed in my filter and&amp;nbsp; I don't think we can add a measure to a filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a workaround for that. Appreciate your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 12:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121639#M8459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-27T12:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a single value dimension with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121640#M8460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you use this as calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Aggr( If([product ID] = Max(TOTAL&amp;lt;Season, Usage&amp;gt; [product ID]), 'True','False'), Season, Usage, [product ID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 18:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121640#M8460</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-08-27T18:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a single value dimension with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121641#M8461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but it is not working as desired. I am going to skip the filter part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 12:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/121641#M8461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-29T12:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a single value dimension with aggr()</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/1742054#M56808</link>
      <description>&lt;P&gt;Worked great for me! Just need some help with this formula when ignoring some field, i.e Dim1.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;= Aggr( If([product ID] = Max(TOTAL &amp;lt;Season, Usage&amp;gt; {&amp;lt;Dim1=&amp;gt;} [product ID]), 'True','False'), Season, Usage, [product ID]) not working...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 15:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-compare-a-single-value-dimension-with-aggr/m-p/1742054#M56808</guid>
      <dc:creator>itsik85</dc:creator>
      <dc:date>2020-09-08T15:13:06Z</dc:date>
    </item>
  </channel>
</rss>

