<?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: Date range by single date field in database table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888482#M309627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select :&lt;/P&gt;&lt;P&gt;From : 31/03/2015&lt;/P&gt;&lt;P&gt;To : 14/02/2015&lt;/P&gt;&lt;P&gt;It should bring nothing, instead it selects all the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a conditional in the expression : min(orderdate) &amp;lt;= max(orderdateto) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kosmas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Jun 2015 17:25:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-14T17:25:22Z</dc:date>
    <item>
      <title>Date range by single date field in database table</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888477#M309622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a database table which has 2 fields orderDate and orderAmount. Now I need to create date range as from-order-date and to-order-date in &lt;STRONG&gt;2 separate list box by using orderDate field&lt;/STRONG&gt;. And also need sum(orderAmount) when customer select from-order-date and to-order-date from those list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="150" style="border: 1px solid rgb(0, 0, 0); width: 288px; height: 108px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;orderDate&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;orderAmount&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1/1/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;14/2/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;31/3/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;30/4/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;14/6/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone please provide video or process step by step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 13:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888477#M309622</guid>
      <dc:creator />
      <dc:date>2015-06-14T13:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date range by single date field in database table</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888478#M309623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use variables and calendar objects to select start and end dates or use list boxes in alternate states to get the result you specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 13:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888478#M309623</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-06-14T13:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date range by single date field in database table</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888479#M309624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks marco, but the main problem is when I choose a date from 1st list box then that date automatically selected in 2nd list box.&lt;/P&gt;&lt;P&gt;Consider that only list boxes and only those 5 date values, not calender object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 13:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888479#M309624</guid>
      <dc:creator />
      <dc:date>2015-06-14T13:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date range by single date field in database table</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888480#M309625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;see attachment.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 13:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888480#M309625</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-06-14T13:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date range by single date field in database table</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888481#M309626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one possible solution using alternate states could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_168253_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89361_QlikCommunity_Thread_168253_Pic1.JPG" style="height: 234px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 14:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888481#M309626</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-06-14T14:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date range by single date field in database table</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888482#M309627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select :&lt;/P&gt;&lt;P&gt;From : 31/03/2015&lt;/P&gt;&lt;P&gt;To : 14/02/2015&lt;/P&gt;&lt;P&gt;It should bring nothing, instead it selects all the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a conditional in the expression : min(orderdate) &amp;lt;= max(orderdateto) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kosmas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 17:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888482#M309627</guid>
      <dc:creator />
      <dc:date>2015-06-14T17:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date range by single date field in database table</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888483#M309628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit&lt;/P&gt;&lt;P&gt;I've prepared a file with the solution. Maybe it would suit you.&lt;/P&gt;&lt;P&gt;Regards, Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 19:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888483#M309628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-14T19:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date range by single date field in database table</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888484#M309629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;interesting, so does my solution.&lt;/P&gt;&lt;P&gt;Thanks for pointing this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the search string in the set expression into&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14343182952164891" jivemacro_uid="_14343182952164891"&gt;
&lt;P&gt;=Sum({$&amp;lt;orderDate={"=orderDate&amp;gt;='$(=only({asStartDate} orderDate))' and orderDate&amp;lt;='$(=only({asEndDate} orderDate))'"}&amp;gt;} orderAmount)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems to work though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_168253_Pic2.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89378_QlikCommunity_Thread_168253_Pic2.JPG" style="height: 71px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_168253_Pic3.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/89379_QlikCommunity_Thread_168253_Pic3.JPG" style="height: 72px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_168253_Pic4.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/89380_QlikCommunity_Thread_168253_Pic4.JPG" style="height: 189px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jun 2015 21:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888484#M309629</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-06-14T21:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date range by single date field in database table</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888485#M309630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to identify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 16:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888485#M309630</guid>
      <dc:creator />
      <dc:date>2015-06-15T16:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date range by single date field in database table</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888486#M309631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please close your thread if your question is answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 18:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888486#M309631</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-06-15T18:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date range by single date field in database table</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888487#M309632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have QV personal edition. Can you give any video, so that I can understand this answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 08:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-by-single-date-field-in-database-table/m-p/888487#M309632</guid>
      <dc:creator />
      <dc:date>2015-06-16T08:05:29Z</dc:date>
    </item>
  </channel>
</rss>

