<?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 to take all dates including Previous Dates when selecting a date in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-take-all-dates-including-Previous-Dates-when-selecting-a/m-p/1566944#M743310</link>
    <description>&lt;P&gt;What if you put this into set analysis. So something like this:&lt;/P&gt;&lt;PRE&gt;Count(distinct {&amp;lt;OPEN_date = "&amp;gt;date", END_date = "&amp;lt;DateSelected"&amp;gt;} ID)&lt;/PRE&gt;&lt;P&gt;Where date represents either a hard-coded start date (if it is always the same), DateSelected is the value of the date the user is selecting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2019 13:02:32 GMT</pubDate>
    <dc:creator>cbushey1</dc:creator>
    <dc:date>2019-04-09T13:02:32Z</dc:date>
    <item>
      <title>How to take all dates including Previous Dates when selecting a date in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-take-all-dates-including-Previous-Dates-when-selecting-a/m-p/1566837#M743309</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want an expression for Count(IDs) from Starting Date to Selected Date where a user selects Year or&amp;nbsp;YearMonth .&lt;/P&gt;&lt;P&gt;Suppose a&amp;nbsp;YearMonth (YYYY-MM)&amp;nbsp;2018-10 is selected in line chart I need to display data for weekly. (I have data from 1/1/2010), then the count(Ids) should be from Start date (1/1/2010) till 10/31/2018 until selected Month.&lt;/P&gt;&lt;P&gt;So for example If&amp;nbsp; I select YearMonth is 2018-10, for that we have five weeks. Here I am defining Weekend as Saturday.&lt;/P&gt;&lt;P&gt;In line charts Weeks are displaying like 2018-10-06, 2018-10-13, 2018-10-20, 2018-10-27, 2018-11-03&lt;/P&gt;&lt;P&gt;Here I am using this below expression:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;num&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;count&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;DISTINCT&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;if&lt;/FONT&gt;(((&lt;FONT color="#0000ff"&gt;IsNull&lt;/FONT&gt;(&lt;FONT color="#800000"&gt;END_Date&lt;/FONT&gt;) &lt;FONT color="#0000ff"&gt;and&lt;/FONT&gt; &lt;FONT color="#800000"&gt;Open_Date&lt;/FONT&gt;&amp;lt;='2018-10-06') &lt;FONT color="#0000ff"&gt;or&lt;/FONT&gt; (&lt;FONT color="#800000"&gt;END_Date&lt;/FONT&gt;&amp;gt;'2018-10-06 '&lt;FONT color="#0000ff"&gt;and&lt;/FONT&gt; &lt;FONT color="#800000"&gt;Open_Date&lt;/FONT&gt;&amp;lt;='2018-10-06')), &lt;FONT color="#800000"&gt;IDs&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT size="2"&gt;)),'##,##')&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;the above expression I am taking hard code for one week. it is showing correct value. because we are&amp;nbsp;using hard coding. but when we are using&amp;nbsp; field . it Is not showing correct out put. why because , if I want to see the week&amp;nbsp;data for 2018-10-06. the output for that week is 239 by using hard coding.&amp;nbsp;Instead of hard-coding&amp;nbsp;value is showing 66 means it is taking data from&amp;nbsp;2018-10-01 to 2018-10-06.&amp;nbsp;That is why it is showing wrong out. But I want to take data&amp;nbsp;if I select 2018-10-06. it should take data for open_date &amp;lt;=2018-10-06(till 01/01/2010) . for End_date&amp;gt;2018-10-06(till 2018-10-31)&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The Expression in the Data Load Editor is as Given below:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Date",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month("Date") as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year_Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year("Date") as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(Date) as "Day1",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ids,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FROM [lib://Folder/Sales data.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one help me on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-take-all-dates-including-Previous-Dates-when-selecting-a/m-p/1566837#M743309</guid>
      <dc:creator>shabarish0587</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to take all dates including Previous Dates when selecting a date in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-take-all-dates-including-Previous-Dates-when-selecting-a/m-p/1566944#M743310</link>
      <description>&lt;P&gt;What if you put this into set analysis. So something like this:&lt;/P&gt;&lt;PRE&gt;Count(distinct {&amp;lt;OPEN_date = "&amp;gt;date", END_date = "&amp;lt;DateSelected"&amp;gt;} ID)&lt;/PRE&gt;&lt;P&gt;Where date represents either a hard-coded start date (if it is always the same), DateSelected is the value of the date the user is selecting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 13:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-take-all-dates-including-Previous-Dates-when-selecting-a/m-p/1566944#M743310</guid>
      <dc:creator>cbushey1</dc:creator>
      <dc:date>2019-04-09T13:02:32Z</dc:date>
    </item>
  </channel>
</rss>

