<?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 COUNTof Values per day in date range in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/COUNTof-Values-per-day-in-date-range/m-p/1792005#M64356</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to COUNT [# of subscribers] by DAY between a range of dates.&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subscriber_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; subscription_start_date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; subscription_end_date&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filters Panes for Range of Selected dates/periods&lt;/P&gt;&lt;P&gt;Bar Chart of count of subscribers by Day&lt;/P&gt;&lt;P&gt;i.e.&amp;nbsp; I have 301 subscribers on 01Jan, 305 on 02Jan, 299 on 03Jan, etc.&lt;/P&gt;&lt;P&gt;How can I optimize my data model, organize my bar chart, and write a formula to solve this requirement?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:25:28 GMT</pubDate>
    <dc:creator>andrew415</dc:creator>
    <dc:date>2024-11-16T00:25:28Z</dc:date>
    <item>
      <title>COUNTof Values per day in date range</title>
      <link>https://community.qlik.com/t5/App-Development/COUNTof-Values-per-day-in-date-range/m-p/1792005#M64356</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to COUNT [# of subscribers] by DAY between a range of dates.&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subscriber_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; subscription_start_date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; subscription_end_date&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filters Panes for Range of Selected dates/periods&lt;/P&gt;&lt;P&gt;Bar Chart of count of subscribers by Day&lt;/P&gt;&lt;P&gt;i.e.&amp;nbsp; I have 301 subscribers on 01Jan, 305 on 02Jan, 299 on 03Jan, etc.&lt;/P&gt;&lt;P&gt;How can I optimize my data model, organize my bar chart, and write a formula to solve this requirement?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNTof-Values-per-day-in-date-range/m-p/1792005#M64356</guid>
      <dc:creator>andrew415</dc:creator>
      <dc:date>2024-11-16T00:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTof Values per day in date range</title>
      <link>https://community.qlik.com/t5/App-Development/COUNTof-Values-per-day-in-date-range/m-p/1793097#M64357</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/37707"&gt;@andrew415&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after verifying your data,&amp;nbsp; it seems that you have some subscriptions per range (not per day), can you give an example to clarify your goal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 19:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNTof-Values-per-day-in-date-range/m-p/1793097#M64357</guid>
      <dc:creator>JMAROUF</dc:creator>
      <dc:date>2021-03-20T19:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTof Values per day in date range</title>
      <link>https://community.qlik.com/t5/App-Development/COUNTof-Values-per-day-in-date-range/m-p/1793848#M64358</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;hope this could help you.&lt;/P&gt;&lt;P&gt;First script:&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;BR /&gt;SET DecimalSep='.';&lt;BR /&gt;SET MoneyThousandSep=',';&lt;BR /&gt;SET MoneyDecimalSep='.';&lt;BR /&gt;SET MoneyFormat='$#,##0.00;-$#,##0.00';&lt;BR /&gt;SET TimeFormat='h:mm:ss TT';&lt;BR /&gt;SET DateFormat='MM/DD/YYYY';&lt;BR /&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;BR /&gt;SET FirstWeekDay=6;&lt;BR /&gt;SET BrokenWeeks=1;&lt;BR /&gt;SET ReferenceDay=0;&lt;BR /&gt;SET FirstMonthOfYear=1;&lt;BR /&gt;SET CollationLocale='en-US';&lt;BR /&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;BR /&gt;SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';&lt;BR /&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;BR /&gt;SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';&lt;BR /&gt;SET NumericalAbbreviation='3:k;6:M;9:G;12:T;15:P;18:E;21:Z;24:Y;-3:m;-6:μ;-9:n;-12:p;-15:f;-18:a;-21:z;-24:y';&lt;/P&gt;&lt;P&gt;tmp:&lt;BR /&gt;load * Inline [&lt;BR /&gt;subscriber_name,subscription_start_date,subscription_end_date&lt;BR /&gt;a,10/2/2019,11/5/2019&lt;BR /&gt;b,10/3/2019,11/5/2019&lt;BR /&gt;c,11/1/2019,12/10/2019&lt;BR /&gt;d,12/13/2019,12/15/2019&lt;BR /&gt;e,12/20/2019,1/5/2020&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[max/min dates]:&lt;BR /&gt;load max(subscription_end_date) as 2, min(subscription_start_date) as 1 Resident tmp;&lt;/P&gt;&lt;P&gt;let maxDate = Peek('2',0,'max/min dates');&lt;BR /&gt;let minDate = Peek('1',0,'max/min dates');&lt;BR /&gt;drop table [max/min dates];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;calendar:&lt;BR /&gt;load $(minDate)+IterNo()-1 as Date&lt;BR /&gt;AutoGenerate 1 while $(minDate)+IterNo()-1 &amp;lt;= $(maxDate);&lt;/P&gt;&lt;P&gt;inner join(tmp)&lt;BR /&gt;IntervalMatch(Date)&lt;BR /&gt;load&lt;BR /&gt;subscription_start_date,&lt;BR /&gt;subscription_end_date&lt;BR /&gt;Resident tmp;&lt;/P&gt;&lt;P&gt;Then bar chart:&lt;/P&gt;&lt;P&gt;Dim: =date(Date)&lt;/P&gt;&lt;P&gt;Measure: = count(subscriber_name) or if you want unique count, use count(distinct&amp;nbsp;subscriber_name)&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;m&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 19:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNTof-Values-per-day-in-date-range/m-p/1793848#M64358</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2021-03-23T19:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTof Values per day in date range</title>
      <link>https://community.qlik.com/t5/App-Development/COUNTof-Values-per-day-in-date-range/m-p/1794674#M64359</link>
      <description>&lt;P&gt;Works perfectly.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 01:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNTof-Values-per-day-in-date-range/m-p/1794674#M64359</guid>
      <dc:creator>andrew415</dc:creator>
      <dc:date>2021-03-26T01:24:11Z</dc:date>
    </item>
  </channel>
</rss>

