<?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: Comparing two aggr in an if in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127841#M91771</link>
    <description>&lt;P&gt;What happens if you put ID as dimension in a table-chart and both only() calculations without the aggr() as single expressions and a third one comparing them?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 07:39:42 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2023-10-12T07:39:42Z</dc:date>
    <item>
      <title>Comparing two aggr in an if</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127327#M91726</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to compare two aggrs in an if, but the comparison doesn't return the result I want...&lt;/P&gt;
&lt;P&gt;aggr1 :&lt;BR /&gt;aggr(Only({$&amp;lt;DATE_START={"&amp;lt;=$(=vDATE1)"},DATE_END={"&amp;gt;$(=vDATE1)"},STATE_ID -= {'Out'}&amp;gt;}ATTRIBUTE),ID)&lt;BR /&gt;The result is -&amp;gt; 'XX'&lt;BR /&gt;&lt;BR /&gt;aggr2 :&lt;BR /&gt;aggr(Only({$&amp;lt;DATE_START={"&amp;lt;=$(=vDATE2)"},DATE_END={"&amp;gt;$(=vDATE2)"},STATE_ID -= {'Out'}&amp;gt;}ATTRIBUTE),ID)&lt;BR /&gt;The result is -&amp;gt; 'XX'&lt;BR /&gt;&lt;BR /&gt;If :&lt;BR /&gt;If(aggr(Only({$&amp;lt;DATE_START={"&amp;lt;=$(=vDATE1)"},DATE_END={"&amp;gt;$(=vDATE1)"},STATE_ID -= {'Out'}&amp;gt;}ATTRIBUTE),ID) = aggr(Only({$&amp;lt;DATE_START={"&amp;lt;=$(=vDATE2)"},DATE_END={"&amp;gt;$(=vDATE2)"},STATE_ID -= {'Out'}&amp;gt;}ATTRIBUTE),ID),Null(),ID)&lt;BR /&gt;The result is -&amp;gt; ID&lt;BR /&gt;Except that as the two aggr are identical, I'll end up with a Null.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why doesn't the comparison work?&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 06:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127327#M91726</guid>
      <dc:creator>Obsyky</dc:creator>
      <dc:date>2023-10-11T06:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two aggr in an if</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127331#M91727</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Have broken the Set analysis down?&lt;/P&gt;
&lt;P&gt;I.e. Created a table with Above and comparing? Ensuring that the Aggr is always bring through a single value for the only function on both sides?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 06:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127331#M91727</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2023-10-11T06:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two aggr in an if</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127334#M91728</link>
      <description>&lt;P&gt;The value is unique for each id&lt;/P&gt;
&lt;P&gt;Just that it can change according to the date, and the goal is to display only the IDs that may have changed between two dates&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 07:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127334#M91728</guid>
      <dc:creator>Obsyky</dc:creator>
      <dc:date>2023-10-11T07:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two aggr in an if</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127572#M91751</link>
      <description>&lt;P&gt;You may try it in this way:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If(aggr(&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Only({$&amp;lt;DATE_START={"&amp;lt;=$(=vDATE1)"},DATE_END={"&amp;gt;$(=vDATE1)"},STATE_ID -= {'Out'}&amp;gt;}ATTRIBUTE) &amp;lt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;nbsp;Only({$&amp;lt;DATE_START={"&amp;lt;=$(=vDATE2)"},DATE_END={"&amp;gt;$(=vDATE2)"},STATE_ID -= {'Out'}&amp;gt;}ATTRIBUTE), &lt;BR /&gt;ID),ID)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 15:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127572#M91751</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-10-11T15:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two aggr in an if</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127809#M91770</link>
      <description>&lt;P&gt;It always returns a value &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 06:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127809#M91770</guid>
      <dc:creator>Obsyky</dc:creator>
      <dc:date>2023-10-12T06:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two aggr in an if</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127841#M91771</link>
      <description>&lt;P&gt;What happens if you put ID as dimension in a table-chart and both only() calculations without the aggr() as single expressions and a third one comparing them?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 07:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127841#M91771</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-10-12T07:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two aggr in an if</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127881#M91772</link>
      <description>&lt;P&gt;What is the dimension you are using in your chart?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 08:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127881#M91772</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-10-12T08:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two aggr in an if</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127970#M91777</link>
      <description>&lt;P&gt;I've found a solution to my problem. I simply replaced the "=" between the aggr() with a "like".&lt;/P&gt;
&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 11:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-two-aggr-in-an-if/m-p/2127970#M91777</guid>
      <dc:creator>Obsyky</dc:creator>
      <dc:date>2023-10-12T11:54:33Z</dc:date>
    </item>
  </channel>
</rss>

