<?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: How can you use set analysis to count the number of items with a date that is between two other dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2439894#M97204</link>
    <description>&lt;P&gt;Do you have an example of what you mean?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 15:53:26 GMT</pubDate>
    <dc:creator>asheppardwork</dc:creator>
    <dc:date>2024-04-10T15:53:26Z</dc:date>
    <item>
      <title>How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2439448#M97164</link>
      <description>&lt;P&gt;I have a bit of a strange problem; I admit I'm not the best at Set Analysis syntax in Qlik. I am trying to get a count of records where the return_date is between the trigger_date and trigger_date + 30/60/90/180/365/730 days.&lt;BR /&gt;I have tried the following formulas to no avail; it either miscounts the 30 days, or doesn't count them, or if it does when I change it to a larger value like 365 days it doesn't count them at all, what am I doing wrong here?&lt;/P&gt;
&lt;P&gt;I did try this &lt;A href="https://community.qlik.com/t5/New-to-Qlik-Analytics/Using-Count-function-between-two-dates/td-p/1529132" target="_self"&gt;solution&lt;/A&gt; but it does not work for me.&lt;/P&gt;
&lt;P&gt;Attempt 1:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Count({&amp;lt;[Return_Dt.autoCalendar.Date]={"&amp;gt;=$([Trigger_Dt.autoCalendar.Date]) &amp;lt;=$([Trigger_Dt.autoCalendar.Date]+30)"}&amp;gt;} Distinct RecordNum)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attempt 2:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Count({&amp;lt;Return_Dt.autoCalendar.Date={"&amp;gt;=$(=Trigger_Dt.autoCalendar.Date) &amp;lt;=$(=Trigger_Dt.autoCalendar.Date+30)"}&amp;gt;} Distinct RecordNum)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attempt 3:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Count({&amp;lt; [Return_Dt.autoCalendar.Date]= {"&amp;gt;=([Trigger_Dt.autoCalendar.Date])  &amp;lt;=([Trigger_Dt.autoCalendar.Date]+30)"} &amp;gt;} Distinct RecordNum)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Apr 2024 16:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2439448#M97164</guid>
      <dc:creator>asheppardwork</dc:creator>
      <dc:date>2024-04-09T16:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2439561#M97171</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58274"&gt;@asheppardwork&lt;/a&gt;&amp;nbsp;To fetch any arbitrary, make sure you have aggregate involved for this field,&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;[Trigger_Dt.autoCalendar.Date]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Because it is important how you are calculating the between data for another associated calendar field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 04:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2439561#M97171</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-04-10T04:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2439562#M97172</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;[Return_Dt.autoCalendar.Date]={"&amp;gt;=$(=max([Trigger_Dt.autoCalendar.Date])) &amp;lt;=$(=max([Trigger_Dt.autoCalendar.Date])+30)"}&amp;gt;} Distinct RecordNum)&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 04:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2439562#M97172</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-04-10T04:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2439893#M97203</link>
      <description>&lt;P&gt;I tried it but I get the same exact counts for 30 and 365 days&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample Results from your code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Trigger_dt&lt;/TD&gt;
&lt;TD width="25%"&gt;Return_DT&lt;/TD&gt;
&lt;TD width="25%"&gt;30-day_count&lt;/TD&gt;
&lt;TD width="25%"&gt;365-day_count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;05/09/2022&lt;/TD&gt;
&lt;TD width="25%"&gt;04/02/2024&lt;/TD&gt;
&lt;TD width="25%"&gt;1&lt;/TD&gt;
&lt;TD width="25%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;09/20/2022&lt;/TD&gt;
&lt;TD width="25%"&gt;04/02/2024&lt;/TD&gt;
&lt;TD width="25%"&gt;1&lt;/TD&gt;
&lt;TD width="25%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;11/10/2023&lt;/TD&gt;
&lt;TD width="25%"&gt;04/01/2024&lt;/TD&gt;
&lt;TD width="25%"&gt;0&lt;/TD&gt;
&lt;TD width="25%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;04/01/2024&lt;/TD&gt;
&lt;TD width="25%"&gt;04/01/2024&lt;/TD&gt;
&lt;TD width="25%"&gt;0&lt;/TD&gt;
&lt;TD width="25%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I expect:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;Trigger_dt&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Return_DT&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;30-day_count&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;365-day_count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;05/09/2022&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;04/02/2024&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;0&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;09/20/2022&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;04/02/2024&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;0&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;11/10/2023&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;04/01/2024&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;0&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;04/01/2024&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;04/01/2024&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 10 Apr 2024 15:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2439893#M97203</guid>
      <dc:creator>asheppardwork</dc:creator>
      <dc:date>2024-04-10T15:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2439894#M97204</link>
      <description>&lt;P&gt;Do you have an example of what you mean?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 15:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2439894#M97204</guid>
      <dc:creator>asheppardwork</dc:creator>
      <dc:date>2024-04-10T15:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440030#M97215</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58274"&gt;@asheppardwork&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry about that, I missinterpreted your question.&lt;/P&gt;
&lt;P&gt;Set analysis might not be the best way to solve this. You could try&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;=-sum((Return_DT - Trigger_dt)&amp;lt;=$(no_of_days))&amp;nbsp;&lt;/FONT&gt; &lt;FONT face="courier new,courier" color="#808080"&gt;//where $(no_of_days) is the number of your choice&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another solution could be to calculate the interval in your script while loading the data like in the image below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_1-1712816865257.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163862i3861C17F677BF8C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vegar_1-1712816865257.png" alt="Vegar_1-1712816865257.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then you could use an easy set expression like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;=count({&amp;lt; dt_interval={"&amp;lt;=$(no_of_days)"}&amp;gt;}dt_interval)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I loaded your dates into&amp;nbsp; a QV app and using my suggestion it looks like the image below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_0-1712816641995.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163861iDBC413EC7D72E4B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vegar_0-1712816641995.png" alt="Vegar_0-1712816641995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 06:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440030#M97215</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-04-11T06:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440402#M97256</link>
      <description>&lt;P&gt;Thanks again sir, I am trying your solution but not able to get it to work so let me provide a more complete view of the data&lt;/P&gt;
&lt;P&gt;Report_Table:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Emp_ID&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Name&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Item&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Type&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Trigger_dt&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Return_DT&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;111222333&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;Jane Doe&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;AD76&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;Upgrade&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;03/05/2024&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;03/30/2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;8675309&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Robert Ore&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;ZZ88&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Term&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;04/01/2024&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;04/01/2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;373737&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Jaxon Jeans&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;XX99&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Upgrade&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;02/01/2023&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;01/05/2024&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;TABLE border="1" width="125.00000000000003%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Emp_ID&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Name&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Item&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Type&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Trigger_dt&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Return_DT&lt;/TD&gt;
&lt;TD width="12.5%"&gt;dt_interval&lt;/TD&gt;
&lt;TD width="12.5%"&gt;=count({&amp;lt;dt_interval={"&amp;lt;=30"}&amp;gt;}Trigger_dt)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;111222333&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;Jane Doe&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;AD76&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;Upgrade&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;03/05/2024&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;03/30/2024&lt;/TD&gt;
&lt;TD width="12.5%"&gt;25&lt;/TD&gt;
&lt;TD width="12.5%"&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;8675309&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Robert Ore&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;ZZ88&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Term&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;04/01/2024&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;04/01/2024&lt;/TD&gt;
&lt;TD width="12.5%"&gt;0&lt;/TD&gt;
&lt;TD width="12.5%"&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;373737&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Jaxon Jeans&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;XX99&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Upgrade&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;02/01/2023&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;01/05/2024&lt;/TD&gt;
&lt;TD width="12.5%"&gt;338&lt;/TD&gt;
&lt;TD width="12.5%"&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Desired Results:&lt;/P&gt;
&lt;TABLE border="1" width="136.11111111111114%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Emp_ID&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Name&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Item&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Type&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Trigger_dt&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Return_DT&lt;/TD&gt;
&lt;TD width="12.5%"&gt;dt_interval&lt;/TD&gt;
&lt;TD width="12.5%"&gt;30-day Count&lt;/TD&gt;
&lt;TD width="11.11111111111111%"&gt;365-day Count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;111222333&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;Jane Doe&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;AD76&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;Upgrade&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;03/05/2024&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="28px"&gt;03/30/2024&lt;/TD&gt;
&lt;TD width="12.5%"&gt;25&lt;/TD&gt;
&lt;TD width="12.5%"&gt;1&lt;/TD&gt;
&lt;TD width="11.11111111111111%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;8675309&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Robert Ore&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;ZZ88&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Term&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;04/01/2024&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;04/01/2024&lt;/TD&gt;
&lt;TD width="12.5%"&gt;0&lt;/TD&gt;
&lt;TD width="12.5%"&gt;1&lt;/TD&gt;
&lt;TD width="11.11111111111111%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;373737&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Jaxon Jeans&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;XX99&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;Upgrade&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;02/01/2023&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;01/05/2024&lt;/TD&gt;
&lt;TD width="12.5%"&gt;338&lt;/TD&gt;
&lt;TD width="12.5%"&gt;0&lt;/TD&gt;
&lt;TD width="11.11111111111111%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure why but all my counts are wrong.&lt;/P&gt;
&lt;P&gt;In the Load script I'm using:&lt;/P&gt;
&lt;P&gt;NUM(Return_Dt - Trigger_dt, '0') as dt_interval&lt;/P&gt;
&lt;P&gt;In the sheet I've used each of the following with the various results:&lt;/P&gt;
&lt;P&gt;=count({&amp;lt;dt_interval={"&amp;lt;=30"}&amp;gt;}Trigger_dt)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; results in the counts being all 8s?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=count({&amp;lt; dt_interval={"&amp;lt;=$30"}&amp;gt;}dt_interval)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;results in not returning any records&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=count({&amp;lt; dt_interval={"&amp;gt;= 0 &amp;lt;=31"}&amp;gt;}dt_interval)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; results in the counts being all 8s?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any Ideas what I'm doing wrong here?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 19:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440402#M97256</guid>
      <dc:creator>asheppardwork</dc:creator>
      <dc:date>2024-04-11T19:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440462#M97262</link>
      <description>&lt;P&gt;8 is an odd number to get from that data set. What happens if you select that three and then add the more generic expression&lt;/P&gt;
&lt;P&gt;=count(dt_interval)&lt;/P&gt;
&lt;P&gt;Do you get 8 as well?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am asking because I'm suspecting that you have duplicate identical rows in your data set. Eight per employee.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 05:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440462#M97262</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-04-12T05:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440465#M97263</link>
      <description>&lt;P&gt;Make sure that you are looking on the real existing data which isn't practically doable with a chart else only with a table-box including all relevant fields + an unique key-field. If none unique key-field exists you could create one with recno() and/or rowno().&lt;/P&gt;
&lt;P&gt;Further if your data-model contained any synthetic keys and/or circular loops resolve them at first ideally by designing the data-model as a star-scheme.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 05:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440465#M97263</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-04-12T05:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440739#M97296</link>
      <description>&lt;P&gt;Yes, I did get 8 from just selecting three rows; but each has a unique row id; and those are not being repeated; also not every result is 8, some are 48, some are 16, some are 72, all multiples of 8&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 15:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440739#M97296</guid>
      <dc:creator>asheppardwork</dc:creator>
      <dc:date>2024-04-12T15:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440747#M97298</link>
      <description>&lt;P&gt;Your row id might be unique within the source and maybe also in the origin Qlik load. But if there are any join or loop approaches in your script the records might be duplicated. By joining approaches may even recno() and rowno() not unique in regard to the existing records.&lt;/P&gt;
&lt;P&gt;Therefore add at the end of your joins and/or the script something like this:&lt;/P&gt;
&lt;P&gt;qualify *; x: load *, rowno() as RowNo resident YourTable; unquality *;&lt;/P&gt;
&lt;P&gt;and then using the fields of this island-table within a table-box. I suspect you will then see a lot of duplication ...&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 15:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2440747#M97298</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-04-12T15:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can you use set analysis to count the number of items with a date that is between two other dates</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2442305#M97415</link>
      <description>&lt;P&gt;Thank you sir, I have decided to try another approach, but I think your solution would have worked if my data were cleaner.&amp;nbsp; Again, I appreciate the help and apologies for taking so long to approve; been re-thinking my entire career, lol.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 20:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-you-use-set-analysis-to-count-the-number-of-items-with-a/m-p/2442305#M97415</guid>
      <dc:creator>asheppardwork</dc:creator>
      <dc:date>2024-04-17T20:38:29Z</dc:date>
    </item>
  </channel>
</rss>

