<?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: Min-Function not working as expected in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Min-Function-not-working-as-expected/m-p/2506206#M104129</link>
    <description>&lt;P&gt;I didn't quite follow the logic in your post. However, generally speaking:&lt;/P&gt;
&lt;P&gt;Min() is an aggregation function. It checks records across any given number of dimensions (0..n) based on either the object it's in, or the aggr() function it's wrapped in, and returns the minimum numeric value among those values.&lt;/P&gt;
&lt;P&gt;RangeMin() is not an aggregation function. It receives one or more numbers and returns the lowest number among those values. &lt;/P&gt;
&lt;P&gt;I would suggest looking up both the aggregation scope documentation (or hic's posts on the subject) and dollar sign expansion documentation / posts to get a better idea of what putting these things in a set analysis might mean. &lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2025 15:24:07 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2025-02-17T15:24:07Z</dc:date>
    <item>
      <title>Min-Function not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Min-Function-not-working-as-expected/m-p/2506200#M104126</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I would like to get the minimum between a variable (vAnzTage) and a column (Zahlungstag_Max). However, the formula Min() is not working as epected - I get always the max resp. probably one Number is not taken into account&lt;/P&gt;
&lt;P&gt;Example: For Kampagnennummer 6640 I have Num(Zahlungstax_Max) = 4 (column). Then I have vAnzTage = 11 (variable). With Min(Num(vAnzTage), Num(Zahlungstag_Max)) I expect 4 - but I get 11. Why? Doesn't make any sense to me...&lt;BR /&gt;&lt;BR /&gt;Thanks for any help!! I'm totally lost and confused....&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 14:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-Function-not-working-as-expected/m-p/2506200#M104126</guid>
      <dc:creator>paperjam</dc:creator>
      <dc:date>2025-02-17T14:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Min-Function not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Min-Function-not-working-as-expected/m-p/2506201#M104127</link>
      <description>&lt;P&gt;You seem to be confusing Min() with RangeMin(). Try the latter. &lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 15:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-Function-not-working-as-expected/m-p/2506201#M104127</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2025-02-17T15:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Min-Function not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Min-Function-not-working-as-expected/m-p/2506205#M104128</link>
      <description>&lt;P&gt;Thank you Or. This works as a new calculated measure perfectly. However, then I have the following question:&lt;BR /&gt;I want to filter for this RangeMin Logic - now the maximum is taken again...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;My formula:&lt;/DIV&gt;
&lt;DIV&gt;Sum(&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Kampagnennummer,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Zahlungstag = {$(=RangeMin(vAnzTage, Zahlungstag_Max))}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; KampagneBetragKumuliert)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;What I expect for the first line:&lt;/DIV&gt;
&lt;DIV&gt;Sum(&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Kampagnennummer,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Zahlungstag = {4}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; KampagneBetragKumuliert)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;What I get:&lt;/DIV&gt;
&lt;DIV&gt;Sum(&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; {&amp;lt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Kampagnennummer,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Zahlungstag = {19}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; KampagneBetragKumuliert)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I guess Zahlungstag_Max is taken from the total. How to filter only for the row (Kampagnennummer)? Something with AGGR()?&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paperjam_0-1739805517237.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177629i348AE89005B9D6B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paperjam_0-1739805517237.png" alt="paperjam_0-1739805517237.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 15:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-Function-not-working-as-expected/m-p/2506205#M104128</guid>
      <dc:creator>paperjam</dc:creator>
      <dc:date>2025-02-17T15:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Min-Function not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Min-Function-not-working-as-expected/m-p/2506206#M104129</link>
      <description>&lt;P&gt;I didn't quite follow the logic in your post. However, generally speaking:&lt;/P&gt;
&lt;P&gt;Min() is an aggregation function. It checks records across any given number of dimensions (0..n) based on either the object it's in, or the aggr() function it's wrapped in, and returns the minimum numeric value among those values.&lt;/P&gt;
&lt;P&gt;RangeMin() is not an aggregation function. It receives one or more numbers and returns the lowest number among those values. &lt;/P&gt;
&lt;P&gt;I would suggest looking up both the aggregation scope documentation (or hic's posts on the subject) and dollar sign expansion documentation / posts to get a better idea of what putting these things in a set analysis might mean. &lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 15:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Min-Function-not-working-as-expected/m-p/2506206#M104129</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2025-02-17T15:24:07Z</dc:date>
    </item>
  </channel>
</rss>

