<?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: Set analysis with dimension min as input to set function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-dimension-min-as-input-to-set-function/m-p/1892378#M73555</link>
    <description>&lt;P&gt;Hi, there was a typo:&lt;/P&gt;
&lt;P&gt;min(TOTAL &amp;lt;[App name&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/FONT&gt;&amp;gt; [Session Start])&lt;/P&gt;
&lt;P&gt;If still doesn't works, can you upload a sample dummy data/app to make some tests?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 07:30:27 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2022-02-14T07:30:27Z</dc:date>
    <item>
      <title>Set analysis with dimension min as input to set function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-dimension-min-as-input-to-set-function/m-p/1892290#M73532</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The expression is supposed to count the number of sessions for the 30 first days for each app, and add them together. The apps have different start dates.&lt;/P&gt;
&lt;P&gt;I have the following expression:&lt;/P&gt;
&lt;P&gt;sum(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; aggr(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; count(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&amp;lt;[Session Start] = {"&amp;lt;=$(=Date(&lt;FONT color="#993300"&gt;&lt;STRONG&gt;min([Session Start])&lt;/STRONG&gt;&lt;/FONT&gt; + 30))"}&amp;gt;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Session Count]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,[App name]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;
&lt;P&gt;Currently the function&amp;nbsp;&amp;nbsp;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;min([Session Start])&lt;/STRONG&gt;&amp;nbsp;&lt;FONT color="#000000"&gt;returns the minimum date for all the "App names"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;FONT color="#000000"&gt;I need help to get the&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#993366"&gt;min([Session Start])&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;to return the minimum date corresponding to each app&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2022 07:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-dimension-min-as-input-to-set-function/m-p/1892290#M73532</guid>
      <dc:creator>LinusNandin</dc:creator>
      <dc:date>2022-02-13T07:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with dimension min as input to set function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-dimension-min-as-input-to-set-function/m-p/1892311#M73538</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;Set analysis is calculated before the table, not applied ro by row, neither inside of an aggr for each dimension.&lt;/P&gt;
&lt;P&gt;Not efficient but maybe:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum(
  aggr(
    count(
      If([Session Start]&amp;lt;=min(TOTAL &amp;lt;[App name&amp;gt; [Session Start])+30)                     
        ,[Session Count])
    )
  ,[App name],[Session Start]
  )
)&lt;/LI-CODE&gt;
&lt;P&gt;To be more efficient you can calculate this in script with the help of mapping table and resident loads.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2022 17:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-dimension-min-as-input-to-set-function/m-p/1892311#M73538</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-02-13T17:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with dimension min as input to set function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-dimension-min-as-input-to-set-function/m-p/1892377#M73554</link>
      <description>&lt;P&gt;Thanks for the replay.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does not seem to work. I get 0.&lt;/P&gt;
&lt;P&gt;I'm working on it in the load script too. I do not currently have access to the data connection, thats why i've tried it in chart expression&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 07:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-dimension-min-as-input-to-set-function/m-p/1892377#M73554</guid>
      <dc:creator>LinusNandin</dc:creator>
      <dc:date>2022-02-14T07:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with dimension min as input to set function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-dimension-min-as-input-to-set-function/m-p/1892378#M73555</link>
      <description>&lt;P&gt;Hi, there was a typo:&lt;/P&gt;
&lt;P&gt;min(TOTAL &amp;lt;[App name&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;/FONT&gt;&amp;gt; [Session Start])&lt;/P&gt;
&lt;P&gt;If still doesn't works, can you upload a sample dummy data/app to make some tests?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 07:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-dimension-min-as-input-to-set-function/m-p/1892378#M73555</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-02-14T07:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with dimension min as input to set function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-with-dimension-min-as-input-to-set-function/m-p/1892729#M73594</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I did realize the typo and corrected it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is want.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LinusNandin_0-1644865404765.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72263iD608B618CB5D0FC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LinusNandin_0-1644865404765.png" alt="LinusNandin_0-1644865404765.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 19:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-with-dimension-min-as-input-to-set-function/m-p/1892729#M73594</guid>
      <dc:creator>LinusNandin</dc:creator>
      <dc:date>2022-02-14T19:04:47Z</dc:date>
    </item>
  </channel>
</rss>

