<?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 Comparing Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235702#M86955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the posting window (not the quick post, but the full reply, or edit window) click on the options tab at the tob, and you can attach your file there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jul 2010 19:41:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-29T19:41:44Z</dc:date>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235693#M86946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a request from a customer to be able to compare sales data from a given time period. They want to be able to compare any particular date chosen from 2 different list boxes. What I have done is put the data in 2 different tables and added 2 seperate list boxes to the sheet. I have loaded 2 different date fields into the document. Although they contain the same values the field names are different. How do I get 1 table to display the values chosen from 1 listbox and the other table to display the values chosen from the second list box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 15:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235693#M86946</guid>
      <dc:creator />
      <dc:date>2010-07-27T15:23:24Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235694#M86947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Date fields should have the same name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 16:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235694#M86947</guid>
      <dc:creator />
      <dc:date>2010-07-27T16:47:28Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235695#M86948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then how do I specify which table relates to the specific date chosen in the list box?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 17:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235695#M86948</guid>
      <dc:creator />
      <dc:date>2010-07-27T17:00:36Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235696#M86949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want Table1 to show data related to June 2009 which would be chosen in ListBox1. Then I want Table2 to show data related to June 2010 which would be chosen in ListBox2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 17:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235696#M86949</guid>
      <dc:creator />
      <dc:date>2010-07-27T17:02:19Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235697#M86950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To compare different periods you can use Set Analysis.&lt;/P&gt;&lt;P&gt;For your example:&lt;/P&gt;&lt;P&gt;1. pick a June month from your calendar&lt;/P&gt;&lt;P&gt;2. first expression for 2010 is sum({$ &amp;lt;Year={"2010"}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;3. second expression for 2009 is sum({$ &amp;lt;Year={"2009"}&amp;gt;} Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 17:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235697#M86950</guid>
      <dc:creator />
      <dc:date>2010-07-27T17:13:39Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235698#M86951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks I believe that is what I am looking for. I will try it out and let yopu know. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 18:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235698#M86951</guid>
      <dc:creator />
      <dc:date>2010-07-27T18:53:16Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235699#M86952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I think I am doing something wrong. I have added the expression to the pivot tables, but my problem is that when I choose 2009 in one list box the other list box value changes also. How can I make it to where the data is pretty much unrelated. No matter what I do it's like whatever date I select for either list box everything on the sheet changes to that specific date. What am I doing wrong??? I apologize and I know this is probably pretty basic, but I am fairly new to QlikView.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 21:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235699#M86952</guid>
      <dc:creator />
      <dc:date>2010-07-27T21:31:17Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235700#M86953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the development environment, click on the table viewer icon. (or, go to the 'File' menu, and select 'Table Viewer') it will show you how your tables are related. You can use it to identify the field that is causing the join, and then you can modify your script to prevent it.&lt;/P&gt;&lt;P&gt;On a somewhat related note, it sounds like you're going about satisfying your requirement in a very inefficient way. you could accomplish what you're attempting through the use of variables, set analysis, and a single set of related tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 23:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235700#M86953</guid>
      <dc:creator />
      <dc:date>2010-07-27T23:37:21Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235701#M86954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data is coming from only 1 Table in the database and so there are no joins. I have a small sample application created to show what I want to do. Is there a way to send that or attach it to the thread???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 19:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235701#M86954</guid>
      <dc:creator />
      <dc:date>2010-07-29T19:24:16Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235702#M86955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the posting window (not the quick post, but the full reply, or edit window) click on the options tab at the tob, and you can attach your file there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 19:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235702#M86955</guid>
      <dc:creator />
      <dc:date>2010-07-29T19:41:44Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235703#M86956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I need to post the excel spreadsheet or nit, but if I do let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 20:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235703#M86956</guid>
      <dc:creator />
      <dc:date>2010-07-29T20:53:48Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235704#M86957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 14:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235704#M86957</guid>
      <dc:creator />
      <dc:date>2010-07-30T14:16:12Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235705#M86958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Nick, Thanks for responding, but that doesn't fix my problem. I was able to get the expression to work that you gave me. The problem is the user wants to see 2 grids on the same sheet at once and compare the data in both grids relative to what is selected for the given list boxes. The sample that you sent me only has 1 set of list boxes and 1 grid. Thanks&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 16:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235705#M86958</guid>
      <dc:creator />
      <dc:date>2010-07-30T16:08:13Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235706#M86959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've showed to you an approach, layout is your responsibility.&lt;/P&gt;&lt;P&gt;Clone the table, remove last two expressions from original table and first two expressions from cloned table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 16:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235706#M86959</guid>
      <dc:creator />
      <dc:date>2010-07-30T16:29:05Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235707#M86960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of us is obviously confused about what is trying to be accomplished and how to do this. Here is a detailed example.&lt;/P&gt;&lt;P&gt;I have 4 List boxes and 2 pivot tables on 1 sheet.&lt;/P&gt;&lt;P&gt;2 list boxes will contain years(Call these Year1 &amp;amp; Year2) the other 2 listboxes will contain Months(Jan - Dec)(Call these Month1 &amp;amp; Month2)&lt;/P&gt;&lt;P&gt;2 pivot tables(Call these Table1 &amp;amp; Table2) will have the same layout and fields.&lt;/P&gt;&lt;P&gt;There may be 10 years of data or there may only be 2 years of data that is loaded from 1 database table. The database table contains a date field(TransactionDate). The user wants to be able to select a year and month from the first set of listboxes(Year1 &amp;amp; Month1) and then 1 pivot table(Table1) would show the data from that period selected.&lt;/P&gt;&lt;P&gt;Now we move on to the second set of listboxes and pivot table. The user wants to be able to select a year and month from second set of listboxes(Year2 &amp;amp; Month2) and then the second pivot table(Table2) would show the data from the period selected. All while the first set of listboxes and pivot table would stay the same. That way the user can compare the data between the 2.&lt;/P&gt;&lt;P&gt;I understand if I clone the table and add the expressions that would work, but the expression will only show data either from 2009 or 2010 and I need it to show the data from a time period that the user chooses. That is my problem.&lt;/P&gt;&lt;P&gt;How do I make it so that the user can choose from a set of listboxes or some other selection criteria the time frame they want to compare? Not a static time comparison. They want to be able to dynamically choose any 2 dates and do a comparison. They may want to compare 01/2010 to 03/2010 or 12/2009 to 01/2010 or 06/2009 to 06/2010 so on and so fourth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 19:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235707#M86960</guid>
      <dc:creator />
      <dc:date>2010-07-30T19:47:06Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235708#M86961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attachment. As I told you, the idea is the same, the implementation is up to you. You can replace sliders by calendars objects but the expressions will stay the same. If you change a structure you will need to change Set Expressions only. And the idea will remain the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 20:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235708#M86961</guid>
      <dc:creator />
      <dc:date>2010-07-30T20:39:57Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235709#M86962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nick. That is exactly what I was looking for and I think I like the sliders better than the listboxes. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 15:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235709#M86962</guid>
      <dc:creator />
      <dc:date>2010-08-02T15:15:41Z</dc:date>
    </item>
    <item>
      <title>Comparing Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235710#M86963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created an app that allow user to select any two years and then show the values(Quantity) with change and % change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set up variables to keep track of what the user selects then Set Analysis for the expressions.&lt;/P&gt;&lt;P&gt;This allows the user to select any 2 years and it will compare the two.&lt;/P&gt;&lt;P&gt;Variables:&lt;/P&gt;&lt;P&gt;VLowYear = if(getselectedcount([GL PERIOD YEAR])=0,max([GL PERIOD YEAR])-1,left(getfieldselections([GL PERIOD YEAR]),4))&lt;/P&gt;&lt;P&gt;VhighYear = if(getselectedcount([GL PERIOD YEAR])=0,max([GL PERIOD YEAR]),right(getfieldselections([GL PERIOD YEAR]),4))&lt;/P&gt;&lt;P&gt;VCurrPeriod = right(Max([GL PERIOD]),2)&lt;/P&gt;&lt;P&gt;VhighYearDay = max([MOVEMENT DATE#])&lt;/P&gt;&lt;P&gt;VlowYearDay = MakeDate( VlowYear, VCurrPeriod,Day(max([MOVEMENT DATE#])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression in Chart:&lt;/P&gt;&lt;P&gt;Label =VlowYear&lt;/P&gt;&lt;P&gt;Expression SUM({&amp;lt;[MOVEMENT DATE#] = {'&amp;lt;=$(VhighYearDay)'} &amp;gt;} [QUANTITY])&lt;/P&gt;&lt;P&gt;Label =VHighYear&lt;/P&gt;&lt;P&gt;Expression SUM({&amp;lt;[MOVEMENT DATE#] = {'&amp;lt;=$(VlowYearDay)'} &amp;gt;} [QUANTITY])&lt;/P&gt;&lt;P&gt;Label Quantity Change&lt;/P&gt;&lt;P&gt;Expression (column(2)-Column(1))&lt;/P&gt;&lt;P&gt;Label % change&lt;/P&gt;&lt;P&gt;Expression (column(2)-Column(1))/Column(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;Let me know if this makes sense - if not we can hook up on a webex and I will be happy to show the app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Aug 2010 22:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Dates/m-p/235710#M86963</guid>
      <dc:creator />
      <dc:date>2010-08-08T22:20:34Z</dc:date>
    </item>
  </channel>
</rss>

