<?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 Set analysis with a dynamic in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-a-dynamic/m-p/1958848#M79039</link>
    <description>&lt;P&gt;Hello, everyone!&amp;nbsp;&lt;BR /&gt;I'm currently struggling with a conditional and a set expression for my app, the TLDR is: I'm looking at the selected date (AnoMes) in the filter pane, if this date is less than, or equal the date of closing (FechamentoEngagement), use the max AnoMes in the filter.&lt;/P&gt;
&lt;P&gt;The problem lies on the else part, in here i need to get the date (FechamentoEngagement) for each row in the app, that is distinc one to another, and use it as the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;(GetSelectedCount(AnoMes)&amp;gt;0, &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;if&lt;/STRONG&gt;(Max(AnoMes) &amp;lt;= FechamentoEngagement,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Sum&lt;/STRONG&gt;({&amp;lt;AnoMes={'$(=Max(AnoMes))'}&amp;gt;}[ValorDespesasEngagementAcum]),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Sum&lt;/STRONG&gt;({&amp;lt;AnoMes=FechamentoEngagement&amp;gt;}[ValorDespesasEngagementAcum]) // in this line the result I'm looking for is the sum of ValorDespesasEngagementAcum in the date until FechamentoEngagement&lt;BR /&gt;),&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sum&lt;/STRONG&gt;({&amp;lt;AnoMes={'$(vAnoMesFechado)'}&amp;gt;}[ValorDespesasEngagementAcum])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this, i'm getting 0 as a result for the second if when the AnoMes &amp;gt; FechamentoEngagement, because in the dataset this values are 0 for performance gain&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 11:48:17 GMT</pubDate>
    <dc:creator>Ian_Diniz</dc:creator>
    <dc:date>2022-07-21T11:48:17Z</dc:date>
    <item>
      <title>Set analysis with a dynamic</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-a-dynamic/m-p/1958848#M79039</link>
      <description>&lt;P&gt;Hello, everyone!&amp;nbsp;&lt;BR /&gt;I'm currently struggling with a conditional and a set expression for my app, the TLDR is: I'm looking at the selected date (AnoMes) in the filter pane, if this date is less than, or equal the date of closing (FechamentoEngagement), use the max AnoMes in the filter.&lt;/P&gt;
&lt;P&gt;The problem lies on the else part, in here i need to get the date (FechamentoEngagement) for each row in the app, that is distinc one to another, and use it as the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;(GetSelectedCount(AnoMes)&amp;gt;0, &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;if&lt;/STRONG&gt;(Max(AnoMes) &amp;lt;= FechamentoEngagement,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Sum&lt;/STRONG&gt;({&amp;lt;AnoMes={'$(=Max(AnoMes))'}&amp;gt;}[ValorDespesasEngagementAcum]),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Sum&lt;/STRONG&gt;({&amp;lt;AnoMes=FechamentoEngagement&amp;gt;}[ValorDespesasEngagementAcum]) // in this line the result I'm looking for is the sum of ValorDespesasEngagementAcum in the date until FechamentoEngagement&lt;BR /&gt;),&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sum&lt;/STRONG&gt;({&amp;lt;AnoMes={'$(vAnoMesFechado)'}&amp;gt;}[ValorDespesasEngagementAcum])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this, i'm getting 0 as a result for the second if when the AnoMes &amp;gt; FechamentoEngagement, because in the dataset this values are 0 for performance gain&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 11:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-a-dynamic/m-p/1958848#M79039</guid>
      <dc:creator>Ian_Diniz</dc:creator>
      <dc:date>2022-07-21T11:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with a dynamic</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-a-dynamic/m-p/1964488#M79500</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/186616"&gt;@Ian_Diniz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you flip the Set expression as AnoMes is the where you are trying to get the sub set of values from and comparing to a single&amp;nbsp;&lt;SPAN&gt;FechamentoEngagement something like&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{&amp;lt;FechamentoEngagement =&amp;nbsp;{'$(=Max(AnoMes))'}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 06:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-a-dynamic/m-p/1964488#M79500</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2022-08-04T06:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with a dynamic</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-a-dynamic/m-p/1965305#M79558</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;You can use an expression like this.&lt;/P&gt;
&lt;P&gt;Sum(AnoMes= {"&amp;lt;=$(=max([FechamentoEngagement]))"} [ValorDespesasEngagementAcum])&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 15:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-a-dynamic/m-p/1965305#M79558</guid>
      <dc:creator>EdgarOlmos</dc:creator>
      <dc:date>2022-08-05T15:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with a dynamic</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-a-dynamic/m-p/1965309#M79559</link>
      <description>&lt;P&gt;The field FechamentoEngagement isnt ordered, neither respect any kind of rule. Every engagement have a distinct FechamentoEngagement and this might be the reason to whenever the app gets 2 or more Engagements or dates filtered, the sum returns some weird values&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 15:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-a-dynamic/m-p/1965309#M79559</guid>
      <dc:creator>Ian_Diniz</dc:creator>
      <dc:date>2022-08-05T15:21:35Z</dc:date>
    </item>
  </channel>
</rss>

