<?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 Selecting same value across different date fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174453#M43280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing is jumping out at me as wrong with that, sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jun 2010 18:26:36 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-06-03T18:26:36Z</dc:date>
    <item>
      <title>Selecting same value across different date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174448#M43275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;I have a question about selecting the same value across multiple date fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this document, all the tables have a date field (DATE_CREATE, DATE_SOLD, CRT_DATE, etc). There about 10 different ones. I have applied the Year and Month function to each one but I dont want to link the tables by dates, otherwise I would get the synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is maybe have a macro that if I select May on my Sales table, it would automatically select the May month corresponding to the Receipts table. Is there a way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the ActiveDocument(Receipt.DATE_CREATE).Select = ActiveDocument(Sales.DATE_SOLD).Select, but of course was not correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 17:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174448#M43275</guid>
      <dc:creator />
      <dc:date>2010-06-02T17:13:25Z</dc:date>
    </item>
    <item>
      <title>Selecting same value across different date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174449#M43276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You would need to do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;SET mySelections = ActiveDocument.Fields("Sales.DATE_SOLD").GetSelectedValues&lt;BR /&gt;ActiveDocument.Fields("Receipt.DATE_CREATE").Select mySelections.Item(0).text&lt;BR /&gt;ActiveDocument.Fields("CRT_DATE").Select mySelections.Item(0).text&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 17:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174449#M43276</guid>
      <dc:creator />
      <dc:date>2010-06-02T17:22:48Z</dc:date>
    </item>
    <item>
      <title>Selecting same value across different date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174450#M43277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I press the clear all button, I get the following error with the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Invalid procedure call or argument"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I suppress this, otherwise it is working like a charm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 19:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174450#M43277</guid>
      <dc:creator />
      <dc:date>2010-06-02T19:24:02Z</dc:date>
    </item>
    <item>
      <title>Selecting same value across different date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174451#M43278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my code to synchronize a second set of date fields in the background in a live application. Each subroutine is executed onSelect or onChange of the associated field. I don't have any problems with the clear button.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sub setDate()&lt;BR /&gt;ActiveDocument.getField("Display Date").selectValues ActiveDocument.getField("Date").getSelectedValues(1200)&lt;BR /&gt;end sub&lt;BR /&gt;sub setWeek()&lt;BR /&gt;ActiveDocument.getField("Display Week").selectValues ActiveDocument.getField("Week").getSelectedValues(500)&lt;BR /&gt;end sub&lt;BR /&gt;sub setMonth()&lt;BR /&gt;ActiveDocument.getField("Display Month").selectValues ActiveDocument.getField("Month").getSelectedValues&lt;BR /&gt;end sub&lt;BR /&gt;sub setQuarter()&lt;BR /&gt;ActiveDocument.getField("Display Quarter").selectValues ActiveDocument.getField("Quarter").getSelectedValues&lt;BR /&gt;end sub&lt;BR /&gt;sub setYear()&lt;BR /&gt;ActiveDocument.getField("Display Year").selectValues ActiveDocument.getField("Year").getSelectedValues&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 19:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174451#M43278</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-02T19:51:05Z</dc:date>
    </item>
    <item>
      <title>Selecting same value across different date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174452#M43279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;Do you see anything wrong with the following code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SelectYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Receipts.Year").selectValues ActiveDocument.Fields("Year").GetSelectedValues&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Inventory.Year").selectValues ActiveDocument.Fields("Year").GetSelectedValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub SelectMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Receipts.Month").selectValues ActiveDocument.Fields("FiscalMonth").GetSelectedValues&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Inventory.Month").selectValues ActiveDocument.Fields("FiscalMonth").GetSelectedValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Year works fine, it cascades my selections across, but when I select month it makes the one selection for FiscalMonth and doesn't pass to my Receipts or Inventory dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 17:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174452#M43279</guid>
      <dc:creator />
      <dc:date>2010-06-03T17:09:19Z</dc:date>
    </item>
    <item>
      <title>Selecting same value across different date fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174453#M43280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing is jumping out at me as wrong with that, sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 18:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-same-value-across-different-date-fields/m-p/174453#M43280</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-03T18:26:36Z</dc:date>
    </item>
  </channel>
</rss>

