<?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: Filter a table object with a calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576769#M547978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly, Your data model is wrong, You need to make connection b/n Calender Table &amp;amp; MyTable with DateID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Mytable, Rename the Num(Date) AS DateID. so these two table got connected and if you make any selection CalDate, those date selection will effect on the MyTable data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Feb 2014 13:58:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-14T13:58:11Z</dc:date>
    <item>
      <title>Filter a table object with a calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576765#M547974</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;I have a table which displays datas from my database&lt;/P&gt;&lt;P&gt;example : &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&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;Nb&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;Name1&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;Name2&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;Date1&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;Date2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/03/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;D1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/01/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;D1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Ed&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/17/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a field CalDate which is a calendar (several dates) created in Script.&lt;/P&gt;&lt;P&gt;I have added a slider/calendar field on my sheet to display CalDate and I want that on selection of a date, my table only displays datas where Date1 &amp;gt;= CalDate - 7 (and Date 1 &amp;lt;= CalDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it's not a chart, I cannot use something like : &lt;/P&gt;&lt;P&gt;= (sum({$ &amp;lt;[Date 1]={"&amp;gt;=$(=Date(CalDate - 7))"}&amp;gt;} Target )) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I do it ?&lt;/P&gt;&lt;P&gt;Thanks in advance for your reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 15:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576765#M547974</guid>
      <dc:creator />
      <dc:date>2014-02-12T15:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a table object with a calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576766#M547975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the CalDate field is not connected to data model then find the below method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create the slider object with CalDate.&lt;/P&gt;&lt;P&gt;2. Create a variable having the selected the CalDate value. &lt;STRONG&gt;LET vSelectedDate = Max(CalDate) ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. Use the below expression in your straight table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;SUM({&amp;lt;[Date 1]={"&amp;lt;=$(vSelectedDate)&amp;gt;=($(vSelectedDate)-7)"}&amp;gt;} Target)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 16:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576766#M547975</guid>
      <dc:creator />
      <dc:date>2014-02-12T16:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Filter a table object with a calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576767#M547976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry but either I'm doing it wrong or my problem isn't clear enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the document in attachment, I have dates in myTable and I want to filter the table according to the field CalDate (in calendar I prefer, or in cursor if necesary) selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 13:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576767#M547976</guid>
      <dc:creator />
      <dc:date>2014-02-14T13:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Filter a table object with a calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576768#M547977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachment, hope it helps&lt;/P&gt;&lt;P&gt;I follow dahtu.qv answer but using 2 variables; also I changed your tablebox with a straight table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 13:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576768#M547977</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-14T13:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a table object with a calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576769#M547978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly, Your data model is wrong, You need to make connection b/n Calender Table &amp;amp; MyTable with DateID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Mytable, Rename the Num(Date) AS DateID. so these two table got connected and if you make any selection CalDate, those date selection will effect on the MyTable data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 13:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576769#M547978</guid>
      <dc:creator />
      <dc:date>2014-02-14T13:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Filter a table object with a calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576770#M547979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answers. I didn't want to connect these 2 fields because there's no link between them. I just wanted to know if there is a way to filter a tablebox (not a straight table) by selecting a date from a calendar... As it may not have this option, I had chosen to follow the pattern of the straight table of Massimo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576770#M547979</guid>
      <dc:creator />
      <dc:date>2014-02-17T11:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a table object with a calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576771#M547980</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;If there is no link between the fields, you can't use in "Table box" . Use Straight table for that scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 11:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-a-table-object-with-a-calendar/m-p/576771#M547980</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-02-17T11:21:23Z</dc:date>
    </item>
  </channel>
</rss>

