<?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: Count problem with 2 dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021719#M924559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="gt-card-ttl-txt"&gt;Many thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 08:01:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-04-14T08:01:48Z</dc:date>
    <item>
      <title>Count problem with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021713#M924553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a question where not sure how to get the result and need your help !&lt;/P&gt;&lt;P&gt;I want count the items by the input_date and output_date in one bar graph. So that i can see&amp;nbsp; the difference per day between input and output. &lt;SPAN lang="en"&gt;But &lt;SPAN&gt;it does not work.What am i doing wrong?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="290"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="19" width="83"&gt;item&lt;/TD&gt;&lt;TD class="xl66" width="108"&gt;input_date&lt;/TD&gt;&lt;TD class="xl66" width="99"&gt;output_date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19"&gt;1012&lt;/TD&gt;&lt;TD class="xl67"&gt;01.05.2013&lt;/TD&gt;&lt;TD class="xl67"&gt;04.05.2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19"&gt;2221&lt;/TD&gt;&lt;TD class="xl67"&gt;04.05.2013&lt;/TD&gt;&lt;TD class="xl67"&gt;07.05.2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19"&gt;2211&lt;/TD&gt;&lt;TD class="xl67"&gt;20.05.2012&lt;/TD&gt;&lt;TD class="xl67"&gt;01.06.2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19"&gt;1212&lt;/TD&gt;&lt;TD class="xl67"&gt;01.05.2013&lt;/TD&gt;&lt;TD class="xl67"&gt;06.05.2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19"&gt;4532&lt;/TD&gt;&lt;TD class="xl67"&gt;03.05.2013&lt;/TD&gt;&lt;TD class="xl67"&gt;05.03.2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19"&gt;4332&lt;/TD&gt;&lt;TD class="xl67"&gt;01.05.2013&lt;/TD&gt;&lt;TD class="xl67"&gt;04.05.2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19"&gt;7876&lt;/TD&gt;&lt;TD class="xl67"&gt;04.05.2013&lt;/TD&gt;&lt;TD class="xl67"&gt;06.05.2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="gt-baf-word-clickable"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021713#M924553</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count problem with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021714#M924554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not quite sure how your analysis works. Do you want to show a kind of histogram, with the difference between dates on x-axis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;=Aggr( output_date - input_date, item)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;=Count(Distinct item)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[take care that your dates have a numeric representation, e.g. by setting the default date format in the script to the fields date format]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you want to see a bar per item, with the difference as height of the bar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;=item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;=( &lt;SPAN style="font-size: 13.3333px;"&gt;output_date - input_date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or just post your current QVW and your description of what you expect to see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 21:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021714#M924554</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-12T21:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count problem with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021715#M924555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not clear on the requirement are you looking for this...(Please see the attachment)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 21:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021715#M924555</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-04-12T21:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count problem with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021716#M924556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution really depends on what you need. If input and output dates are separate dates - the solution is simple (see below), if they define periods - the solution is a little bit tricky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case we deal with separate dates:&lt;/P&gt;&lt;P&gt;1. You need to build a calendar &lt;SPAN style="font-size: 13.3333px;"&gt;in your app &lt;/SPAN&gt;with all the dates of the period (from min to max between input and output dates). At the same time the calendat should have one field, say DateId, which should be used for linking&lt;/P&gt;&lt;P&gt;2. Than you should link your data to the calendar so you'll be able to count the number of items per each date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case we deal with periods it's necessary to like the data via IntervalMatch load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 06:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021716#M924556</guid>
      <dc:creator>maksim_senin</dc:creator>
      <dc:date>2016-04-13T06:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count problem with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021717#M924557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i would like count the items per date - e.g. 04.05.2013; 2 items on input_date and 2 items on output_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this, &lt;SPAN class="short_text" lang="en"&gt;just &lt;SPAN&gt;right ;-(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image001.png" class="jive-image image-1" height="239" src="https://community.qlik.com/legacyfs/online/121556_image001.png" style="height: 239px; width: 333.739px;" width="334" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;Maxim writes, it is determined on &lt;SPAN&gt;calendar.&lt;SPAN class="short_text" lang="en"&gt;I suspect &lt;SPAN&gt;that even.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;@Maxim: Can y&lt;SPAN lang="en"&gt;ou further explain your example to me. I'm new on &lt;SPAN&gt;QlikView.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Kai&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 15:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021717#M924557</guid>
      <dc:creator />
      <dc:date>2016-04-13T15:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count problem with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021718#M924558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kai, create a canonical date from your two date fields&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this new field as dimension and your DateType field as second dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;=Count(DISTINCT DateType)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 16:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021718#M924558</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-13T16:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count problem with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021719#M924559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="gt-card-ttl-txt"&gt;Many thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 08:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-problem-with-2-dates/m-p/1021719#M924559</guid>
      <dc:creator />
      <dc:date>2016-04-14T08:01:48Z</dc:date>
    </item>
  </channel>
</rss>

