<?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: Select a date and work with data from another date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-a-date-and-work-with-data-from-another-date/m-p/1095467#M644541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure your MONTHYEAR* fields are dates. Text values can't be subtracted from each other in a meaningful way.&lt;/P&gt;&lt;P&gt;Then you can use a Select in Field action assigned to the OnSelect trigger of the MONTHYEAR field to select the previous month in the MONTHYEAR_QVD field with a search string like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(AddMonths(MONTHYEAR,-1),'YYYYMM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date format YYYYMM assumes that your MONTHYEAR* fields contain dates with a format YYYYMM. If the date format is something else then you need to adjust the format string in the Date function accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2016 17:55:16 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-01-15T17:55:16Z</dc:date>
    <item>
      <title>Select a date and work with data from another date</title>
      <link>https://community.qlik.com/t5/QlikView/Select-a-date-and-work-with-data-from-another-date/m-p/1095466#M644540</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 something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE_A:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;MONTHYEAR,&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;DATA&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE_QVD:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;MONTHYEAR_QVD,&lt;/P&gt;&lt;P&gt;ID,&lt;BR /&gt;DATA_QVD&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need it is that when you select a date of the filter ( MONTHYEAR ) , for example: January, then only work with data from the previous month(December) of the QVD file &lt;SPAN style="font-size: 13.3333px;"&gt;EXAMPLE_QVD.QVD&lt;/SPAN&gt; ( MONTHYEAR_QVD )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 10:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-a-date-and-work-with-data-from-another-date/m-p/1095466#M644540</guid>
      <dc:creator />
      <dc:date>2016-01-15T10:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select a date and work with data from another date</title>
      <link>https://community.qlik.com/t5/QlikView/Select-a-date-and-work-with-data-from-another-date/m-p/1095467#M644541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure your MONTHYEAR* fields are dates. Text values can't be subtracted from each other in a meaningful way.&lt;/P&gt;&lt;P&gt;Then you can use a Select in Field action assigned to the OnSelect trigger of the MONTHYEAR field to select the previous month in the MONTHYEAR_QVD field with a search string like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(AddMonths(MONTHYEAR,-1),'YYYYMM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date format YYYYMM assumes that your MONTHYEAR* fields contain dates with a format YYYYMM. If the date format is something else then you need to adjust the format string in the Date function accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 17:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-a-date-and-work-with-data-from-another-date/m-p/1095467#M644541</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-15T17:55:16Z</dc:date>
    </item>
  </channel>
</rss>

