<?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 do we get count less than 5 days from current date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558865#M742294</link>
    <description>&lt;P&gt;You should probably skip the brackets []&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SQL SELECT 
EmpJoinDate
FROM 
DB.dbo.Table
;&lt;/PRE&gt;</description>
    <pubDate>Wed, 20 Mar 2019 10:14:32 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2019-03-20T10:14:32Z</dc:date>
    <item>
      <title>How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558734#M742286</link>
      <description>&lt;P&gt;How do we get count less than 5 days from current date.&lt;/P&gt;&lt;P&gt;I have "column A" which contains varchar data type and i want to get count of less than 5 days from current date.&lt;/P&gt;&lt;P&gt;What expression we can use..?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558734#M742286</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2024-11-16T04:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558737#M742287</link>
      <description>Try an expression like this one using SET analysis.&lt;BR /&gt;&lt;BR /&gt;Count( {&amp;lt; Date={"&amp;gt;=$(=Date(max(Date)-5))"} &amp;gt;}[column A])</description>
      <pubDate>Wed, 20 Mar 2019 05:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558737#M742287</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-20T05:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558741#M742288</link>
      <description>&lt;P&gt;I have tested as you mentioned the expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, it is not working.&lt;/P&gt;&lt;P&gt;Pls. find the sample attached file which i want to get count 1). &amp;lt; 10 Days and 2). 10 to 20 Days count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 05:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558741#M742288</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2019-03-20T05:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558747#M742289</link>
      <description>&lt;P&gt;There is only one date that is &amp;gt;=Date-5:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_3.jpg" style="width: 643px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8434iDA9DF36E578881C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_3.jpg" alt="Screenshot_3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have also attached qvw file.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 05:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558747#M742289</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-03-20T05:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558781#M742290</link>
      <description>&lt;P&gt;You had a bit scattered data, not five days in a row. I made som adjustments to prove the consept.&lt;/P&gt;&lt;PRE&gt;LOAD * ,  
chr( mod(rowno(),4)+65) as [category a],
Date(floor(Date#(EmpJoinDate,'DDMMMYYYY:hh:mm:ss')),'DD-MM-YYYY') as  NewDate
;
LOAD * Inline [
EmpJoinDate
04APR2019:09:55:01
26MAR2019:10:56:34
28MAR2019:12:37:40
03MAR2019:13:03:52
02APR2019:09:28:32
26MAR2019:09:31:16
31MAR2019:09:32:06
01APR2019:09:33:33
13MAR2019:14:03:30
05APR2019:09:40:45
26MAR2019:09:44:51
03APR2019:21:16:43
03MAR2019:08:29:20
02MAR2019:09:57:55
10MAR2019:00:31:05
26MAR2019:09:59:55
04APR2019:22:57:52
29MAR2019:07:25:20
20MAR2019:22:59:19
];&lt;/PRE&gt;&lt;P&gt;This allow me to have this default view usin the expresion in the blue text box.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8440i40324B19A48B5619/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 08:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558781#M742290</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-20T08:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558801#M742291</link>
      <description>Thank you very much..&lt;BR /&gt;currently I'm using SQL Server as Back End and my Query is SQL SELECT Statement not LOAD from EXCEL and other source.&lt;BR /&gt;How do i convert my varchar value to date in my script page.&lt;BR /&gt;below is my script.&lt;BR /&gt;SQL SELECT [EmpJoinDate],&lt;BR /&gt;Date(Date#(EmpJoinDate,'DDMMMYYYY:hh:mm:ss'),'DD-MM-YYYY') as EmpJoinDate ==&amp;gt; Will this Work in SQL SELECT Statement.....???</description>
      <pubDate>Wed, 20 Mar 2019 08:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558801#M742291</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2019-03-20T08:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558839#M742292</link>
      <description>&lt;P&gt;You are right, you can not use Qlik syntax inside a SQL query. Try to do your date manipulation inside a preceding load.&lt;/P&gt;&lt;PRE&gt;Table:&lt;BR /&gt;LOAD
Date(&lt;STRONG&gt;Floor(&lt;/STRONG&gt;Date#(EmpJoinDate,'DDMMMYYYY:hh:mm:ss')&lt;STRONG&gt;)&lt;/STRONG&gt;,'DD-MM-YYYY') as EmpJoinDate
;
SQL SELECT
   [EmpJoinDate]
FROM &lt;BR /&gt;   DB.dbo.TABLE&lt;BR /&gt;;&lt;/PRE&gt;&lt;P&gt;Please note that I've added a Floor() in the script, this is to store the date integer and not the timestamp value as the numeric part of EmpJoinDate. &lt;EM&gt;(An date in QlikView is a &lt;STRONG&gt;dual&lt;/STRONG&gt; value containing&amp;nbsp; both a numeric value and a text representation )&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 09:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558839#M742292</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-20T09:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558852#M742293</link>
      <description>&lt;P&gt;Error : OLEDB read failed&lt;BR /&gt;SQL SELECT [EmpJoinDate]&lt;/P&gt;&lt;P&gt;Also LOAD EmpJoinDate will not be loading in my listbox.&lt;/P&gt;&lt;P&gt;but, same SQL Select EmpJoinDate&amp;nbsp; will be loading in my ListBox.&lt;/P&gt;&lt;P&gt;Why&amp;nbsp;LOAD EmpJoinDate will not be loading in my listbox..?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 10:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558852#M742293</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2019-03-20T10:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558865#M742294</link>
      <description>&lt;P&gt;You should probably skip the brackets []&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SQL SELECT 
EmpJoinDate
FROM 
DB.dbo.Table
;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Mar 2019 10:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558865#M742294</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-20T10:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558902#M742295</link>
      <description>&lt;P&gt;No..Still blank list even if i remove brackets []&lt;/P&gt;&lt;P&gt;below my scripts.&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO [Provider=SQLOLEDB.1;Persist Security Info=False;User ID=**********;Initial Catalog=*****;Data Source=TEST;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=********;Use Encryption for Data=False;Tag with column collation when possible=False];&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Date(Floor(EmpJoinDate), 'DD.MM.YYYY') AS EmpJoinDate;&lt;/P&gt;&lt;P&gt;SQL SELECT&amp;nbsp; EmpJoinDate&lt;BR /&gt;FROM&lt;BR /&gt;DB.dbo.EmpTable";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 10:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558902#M742295</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2019-03-20T10:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558905#M742296</link>
      <description>Try to get the correct connect syntax by using the connect / select syntax&lt;BR /&gt;by using the connect wizard inside the script editor.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Mar 2019 10:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558905#M742296</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-20T10:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558933#M742298</link>
      <description>I deleted all the scripts and re-connect it again. Script Generated Successfully with LOAD and SQL Select statement.&lt;BR /&gt;I just changed the field like "Date(Floor(Date#(EmpJoinDate,'DDMMMYYYY:hh:mm:ss')),'DD-MM-YYYY') as EmpJoinDate" in LOAD part and Re-Load it again.&lt;BR /&gt;But, Again it is loading blank for EmpJoinDate.&lt;BR /&gt;Not sure, how i could proceed further...?&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Mar 2019 11:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558933#M742298</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2019-03-20T11:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558939#M742301</link>
      <description>Maybe the assumed format is not correct?&lt;BR /&gt;Could you post a picture of an list box with EmpJoinDate if you load that field straight from the database without any manipulation? You could also pay attention to the alignment of the values in the list box, is the EmpJoinDate left or right aligned?&lt;BR /&gt;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;EmpJoinDate&lt;BR /&gt;FROM&lt;BR /&gt;DB.dbo.Table&lt;BR /&gt;;</description>
      <pubDate>Wed, 20 Mar 2019 11:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558939#M742301</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-20T11:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558968#M742302</link>
      <description>&lt;P&gt;The tricky is, the same will be loading successfully in the LOAD(without converting date) .&lt;BR /&gt;But, while converting the same field in the LOAD, it won't be list.&lt;BR /&gt;What is the magic behind this....?&lt;/P&gt;&lt;P&gt;Same data and Screenshot attached.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 12:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1558968#M742302</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2019-03-20T12:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1559023#M742303</link>
      <description>Some rows are blank in the "EmpJoinDate" Column.&lt;BR /&gt;Because of this...????</description>
      <pubDate>Wed, 20 Mar 2019 13:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1559023#M742303</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2019-03-20T13:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1559891#M742304</link>
      <description>By looking at the picture I notice that Your date format is not DDMMMYYYY:hh:mm:ss but MM/DD/YYYY hh.mm.ss&lt;BR /&gt;Try changing your expression inside the LOAD to:&lt;BR /&gt;Date(floor(Date#(EmpJoinDate,'MM/DD/YYYY hh.mm.ss'))) as EmpJoinDate</description>
      <pubDate>Fri, 22 Mar 2019 05:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1559891#M742304</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-03-22T05:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do we get count less than 5 days from current date</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1560401#M742305</link>
      <description>Excellent...You Rock...</description>
      <pubDate>Sun, 24 Mar 2019 00:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-we-get-count-less-than-5-days-from-current-date/m-p/1560401#M742305</guid>
      <dc:creator>saivina2920</dc:creator>
      <dc:date>2019-03-24T00:42:26Z</dc:date>
    </item>
  </channel>
</rss>

