<?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 Dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-a-Dynamic-Dates/m-p/2029792#M84831</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure how to clearly word this question, but is there a way of using set analysis with dates so that for each row of the table, the date range changes. e.g.&lt;/P&gt;
&lt;P&gt;Count({$&amp;lt;Order_Date={"&amp;lt;=$(=WeekEndDateLess31Days))"}&amp;gt;}distinct(ORDER_NO))&lt;/P&gt;
&lt;P&gt;I don't want&amp;nbsp;WeekEndDateLess31Days to be a variable as it's a value which changes depending on the data selected.&lt;/P&gt;
&lt;P&gt;Because there are multiple occurrences of&amp;nbsp;WeekEndDateLess31Days, it shows as null and fails.&lt;/P&gt;
&lt;P&gt;Max(WeekEndDateLess31Days) gives the max date, but this isn't what is required.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 11:15:48 GMT</pubDate>
    <dc:creator>RichardSmith</dc:creator>
    <dc:date>2023-01-25T11:15:48Z</dc:date>
    <item>
      <title>Set Analysis with a Dynamic Dates</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-a-Dynamic-Dates/m-p/2029792#M84831</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure how to clearly word this question, but is there a way of using set analysis with dates so that for each row of the table, the date range changes. e.g.&lt;/P&gt;
&lt;P&gt;Count({$&amp;lt;Order_Date={"&amp;lt;=$(=WeekEndDateLess31Days))"}&amp;gt;}distinct(ORDER_NO))&lt;/P&gt;
&lt;P&gt;I don't want&amp;nbsp;WeekEndDateLess31Days to be a variable as it's a value which changes depending on the data selected.&lt;/P&gt;
&lt;P&gt;Because there are multiple occurrences of&amp;nbsp;WeekEndDateLess31Days, it shows as null and fails.&lt;/P&gt;
&lt;P&gt;Max(WeekEndDateLess31Days) gives the max date, but this isn't what is required.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 11:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-a-Dynamic-Dates/m-p/2029792#M84831</guid>
      <dc:creator>RichardSmith</dc:creator>
      <dc:date>2023-01-25T11:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with a Dynamic Dates</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-a-Dynamic-Dates/m-p/2029822#M84832</link>
      <description>&lt;P&gt;This isn't really a question anyone but you can answer. You need to determine how to narrow down your multiple dates into a single date that feeds into the set analysis, in a way that meets your requirements. If you can't do that, you can't use set analysis, and you'll need to instead use logic within the function, e.g. count(distinct if(something,ORDER_NO))&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 12:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-a-Dynamic-Dates/m-p/2029822#M84832</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-01-25T12:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with a Dynamic Dates</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-a-Dynamic-Dates/m-p/2029877#M84835</link>
      <description>&lt;P&gt;Thanks for taking the time to reply. That makes sense so will aim for that. I had also tried the if approach without success, but hopefully can code something as you've advised. Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 13:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-a-Dynamic-Dates/m-p/2029877#M84835</guid>
      <dc:creator>RichardSmith</dc:creator>
      <dc:date>2023-01-25T13:37:42Z</dc:date>
    </item>
  </channel>
</rss>

