<?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: Date range using Set analysis not spitting out correctly in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-range-using-Set-analysis-not-spitting-out-correctly/m-p/2421829#M95740</link>
    <description>&lt;P&gt;Set expressions are evaluated on the chart level, i.e. only once per chart.&lt;/P&gt;
&lt;P&gt;You need to use e.g. an if statement in your calculation to filter for your upper and lower bounds.&lt;/P&gt;
&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LRuCelver_1-1708528737910.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160364i6460FEE57AD7B9D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LRuCelver_1-1708528737910.png" alt="LRuCelver_1-1708528737910.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Incorrect Expression:&lt;/P&gt;
&lt;PRE&gt;Sum({&amp;lt;Category={"&amp;gt;=$(=Min(Lower)) &amp;lt;=$(=Max(Upper))"}&amp;gt;} Measure)&lt;/PRE&gt;
&lt;P&gt;Correct Expression:&lt;/P&gt;
&lt;PRE&gt;Sum(If(Category &amp;gt;= Lower and Category &amp;lt;= Upper, Measure))&lt;/PRE&gt;
&lt;P&gt;Script:&lt;/P&gt;
&lt;PRE&gt;Data:&lt;BR /&gt;NoConcatenate Load&lt;BR /&gt;&lt;SPAN&gt; Ceil(Rand() * 3) as Category,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; RangeMin(Res1, Res2) as Lower,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; RangeMax(Res1, Res2) as Upper,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 1 as Measure;&lt;BR /&gt;Load&lt;BR /&gt;&lt;SPAN&gt; Ceil(Rand() * 3) as Res1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Ceil(Rand() * 3) as Res2&lt;/SPAN&gt;&lt;BR /&gt;AutoGenerate 1000;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 15:19:39 GMT</pubDate>
    <dc:creator>LRuCelver</dc:creator>
    <dc:date>2024-02-21T15:19:39Z</dc:date>
    <item>
      <title>Date range using Set analysis not spitting out correctly</title>
      <link>https://community.qlik.com/t5/App-Development/Date-range-using-Set-analysis-not-spitting-out-correctly/m-p/2421759#M95737</link>
      <description>&lt;DIV class="flex-shrink-0 flex flex-col relative items-end"&gt;
&lt;DIV&gt;
&lt;DIV class="pt-0.5"&gt;
&lt;DIV class="gizmo-shadow-stroke flex h-6 w-6 items-center justify-center overflow-hidden rounded-full"&gt;
&lt;DIV class="relative flex"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bolijay00_0-1708523592503.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160348i0DDC036BD8261FD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bolijay00_0-1708523592503.jpeg" alt="Bolijay00_0-1708523592503.jpeg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Before Selection" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160352iAEB15AB8EB8F20A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="befr selction.png" alt="Before Selection" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Before Selection&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="After selection bringing the correct value" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160353i7367A5870E7DC358/image-size/large?v=v2&amp;amp;px=999" role="button" title="aftr selection.png" alt="After selection bringing the correct value" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;After selection bringing the correct value&lt;/span&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="relative flex w-full flex-col"&gt;
&lt;DIV class="font-semibold select-none"&gt;Hi guys&lt;/DIV&gt;
&lt;DIV class="flex-col gap-1 md:gap-3"&gt;
&lt;DIV class="flex flex-grow flex-col max-w-full"&gt;
&lt;DIV class="min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;amp;]:mt-5 overflow-x-auto" data-message-author-role="user" data-message-id="aaa2b7ac-21b3-4342-a63b-f03dc6154a72"&gt;
&lt;DIV class=""&gt;i am using ths formular in a table in Qlik Coalesce( Avg({&amp;lt; [Collection date] = {"&amp;gt;=$(=Monthstart(min([Change date]),-6)))&amp;lt;=$(=Monthstart(mIN([Change date])))"} &amp;gt;} ANB), 0), but the table has differrent change date for different machine, i discoverd that figures showed on the table is as per minimum changedate for the entire entries until you clik on a particular entriy then it shows the asssociated change date for that entry, but the figures displayed on the full table is not unique to each entry individually but the the overall using the minimum change date for the entire change date., how do i resolve this such that the entire table would be showing caculations pertaining to each entries rather than as a collective .&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-range-using-Set-analysis-not-spitting-out-correctly/m-p/2421759#M95737</guid>
      <dc:creator>Bolijay00</dc:creator>
      <dc:date>2024-11-15T21:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date range using Set analysis not spitting out correctly</title>
      <link>https://community.qlik.com/t5/App-Development/Date-range-using-Set-analysis-not-spitting-out-correctly/m-p/2421829#M95740</link>
      <description>&lt;P&gt;Set expressions are evaluated on the chart level, i.e. only once per chart.&lt;/P&gt;
&lt;P&gt;You need to use e.g. an if statement in your calculation to filter for your upper and lower bounds.&lt;/P&gt;
&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LRuCelver_1-1708528737910.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160364i6460FEE57AD7B9D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LRuCelver_1-1708528737910.png" alt="LRuCelver_1-1708528737910.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Incorrect Expression:&lt;/P&gt;
&lt;PRE&gt;Sum({&amp;lt;Category={"&amp;gt;=$(=Min(Lower)) &amp;lt;=$(=Max(Upper))"}&amp;gt;} Measure)&lt;/PRE&gt;
&lt;P&gt;Correct Expression:&lt;/P&gt;
&lt;PRE&gt;Sum(If(Category &amp;gt;= Lower and Category &amp;lt;= Upper, Measure))&lt;/PRE&gt;
&lt;P&gt;Script:&lt;/P&gt;
&lt;PRE&gt;Data:&lt;BR /&gt;NoConcatenate Load&lt;BR /&gt;&lt;SPAN&gt; Ceil(Rand() * 3) as Category,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; RangeMin(Res1, Res2) as Lower,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; RangeMax(Res1, Res2) as Upper,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 1 as Measure;&lt;BR /&gt;Load&lt;BR /&gt;&lt;SPAN&gt; Ceil(Rand() * 3) as Res1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Ceil(Rand() * 3) as Res2&lt;/SPAN&gt;&lt;BR /&gt;AutoGenerate 1000;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 15:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-range-using-Set-analysis-not-spitting-out-correctly/m-p/2421829#M95740</guid>
      <dc:creator>LRuCelver</dc:creator>
      <dc:date>2024-02-21T15:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date range using Set analysis not spitting out correctly</title>
      <link>https://community.qlik.com/t5/App-Development/Date-range-using-Set-analysis-not-spitting-out-correctly/m-p/2422122#M95761</link>
      <description>&lt;P&gt;thak You very much for your guidiance , you made me to use the if statement and it was just very simple -&amp;nbsp;Avg(&lt;BR /&gt;If(&lt;BR /&gt;[Collection date] &amp;gt;= AddMonths([Change date], -6) and [Collection date] &amp;lt;= [Change date],&lt;BR /&gt;ANB&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;and it worked just fine.&lt;BR /&gt;cheers&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 08:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-range-using-Set-analysis-not-spitting-out-correctly/m-p/2422122#M95761</guid>
      <dc:creator>Bolijay00</dc:creator>
      <dc:date>2024-02-22T08:58:40Z</dc:date>
    </item>
  </channel>
</rss>

