<?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: Selecting two dates merging into one date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584533#M740114</link>
    <description>&lt;P&gt;Attached is the data structure.&amp;nbsp; Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2019 14:03:04 GMT</pubDate>
    <dc:creator>provie98</dc:creator>
    <dc:date>2019-05-24T14:03:04Z</dc:date>
    <item>
      <title>Selecting two dates merging into one date</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584123#M740110</link>
      <description>&lt;P&gt;It's been awhile since I've played with Qlikview so please ignore my ignorance.&amp;nbsp; I have the following:&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Customer Table&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Cust_ID&lt;/LI&gt;&lt;LI&gt;Customer_Open_Date&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Deposits Table&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Cust_ID&lt;/LI&gt;&lt;LI&gt;Deposit_Date_Added&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm trying to create &lt;U&gt;&lt;STRONG&gt;ONE&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt; master calendar so when I click Year it filters on both the Customer Open Date&amp;nbsp;&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt;&lt;/U&gt; the Deposit Date Added.&amp;nbsp; &amp;nbsp;For Example, I want to look at accounts that have customers opened in January 2019&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;AND ALSO&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp;Deposits Opened in January 2019.&amp;nbsp; I don't want to have Customers Opened In January 2019 and Deposits In February 2019.&amp;nbsp; In SQL I would write the statement like this:&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;From Customers inner join Deposits on Customers.Cust_ID = Deposits.Cust_ID where Customers.Customer_Open_Date Between '01/01/2019' and '01/31/2019'&amp;nbsp; AND Deposits.Deposit_Date_Added Between '01/01/2019' and '01/31/2019'&amp;nbsp;&lt;/P&gt;&lt;P&gt;When loading the data into click I take out the Where clause because I want to allow the user to use a date range for both fields.&amp;nbsp; Any idea how to do this?&amp;nbsp; I have already tried the Canonical Date approach unsuccessfully.&amp;nbsp; It's not bringing me back the results I want.&amp;nbsp; Any other idea how to make this happen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584123#M740110</guid>
      <dc:creator>provie98</dc:creator>
      <dc:date>2024-11-16T03:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting two dates merging into one date</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584129#M740111</link>
      <description>&lt;P&gt;Look at Rob Wunderlich's &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="download-title"&gt;Tutorial - Using Common Date Dimensions&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://qlikviewcookbook.com/list-recipes/#squelch-taas-accordion-shortcode-content-17" target="_blank"&gt;https://qlikviewcookbook.com/list-recipes/#squelch-taas-accordion-shortcode-content-17&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 18:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584129#M740111</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2019-05-23T18:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting two dates merging into one date</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584154#M740112</link>
      <description>&lt;P&gt;Thanks, I actually downloaded that as example to use but unfortunately, it's not working in my Qlik model.&amp;nbsp; When I select a January 2019 from my common date field, it's not bringing back just January 2019 dates for Deposits Date Added and January 2019 Dates for Customer Open Date.&amp;nbsp; When I select the the two fields separately it's showing correctly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 19:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584154#M740112</guid>
      <dc:creator>provie98</dc:creator>
      <dc:date>2019-05-23T19:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting two dates merging into one date</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584199#M740113</link>
      <description>&lt;P&gt;It looks to me like you are not building the link table correctly. Can you post a screenshot of the table model?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 21:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584199#M740113</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-05-23T21:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting two dates merging into one date</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584533#M740114</link>
      <description>&lt;P&gt;Attached is the data structure.&amp;nbsp; Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 14:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584533#M740114</guid>
      <dc:creator>provie98</dc:creator>
      <dc:date>2019-05-24T14:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting two dates merging into one date</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584541#M740115</link>
      <description>&lt;P&gt;I think this maybe useful to show you as well.&amp;nbsp; The Date field is the Field on the Common Calendar.&amp;nbsp; I'm selecting January 2019.&amp;nbsp; But when you look at the Cust Open Date and Date Added, they don't pull January.&amp;nbsp; Perhaps it maybe my data isn't setup correctly to do the common calendar.&amp;nbsp; I just thought you should see it.&amp;nbsp; I have account number in the detail as well as there are different account numbers for different products linked by Cust ID.&amp;nbsp; I can't show those due to confidentiality.&amp;nbsp; Thanks again for taking the time to help out.&amp;nbsp; I really appreciate it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 14:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584541#M740115</guid>
      <dc:creator>provie98</dc:creator>
      <dc:date>2019-05-24T14:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting two dates merging into one date</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584582#M740116</link>
      <description>&lt;P&gt;It looks like your link table is not set up correctly.&amp;nbsp; &amp;nbsp;Check the subset ratios between your keys and see if anything is matching up.&amp;nbsp; If possible, post a reduced and scrambled qvw sample so we can take a look.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 15:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584582#M740116</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-05-24T15:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting two dates merging into one date</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584626#M740117</link>
      <description>&lt;P&gt;I switched some things around and tried it a different way.&amp;nbsp; It's still giving me the same results when I click January 2019 in the common calendar. If I chose 2019 in the Deposit Year and Customer Year and January in the Deposit Month and Customer Month, it brings me back the correct results.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 16:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584626#M740117</guid>
      <dc:creator>provie98</dc:creator>
      <dc:date>2019-05-24T16:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting two dates merging into one date</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584697#M740120</link>
      <description>&lt;P&gt;If you want an AND for both dates in the selected date range, you can use a set expression like:&lt;/P&gt;&lt;P&gt;count({&amp;lt;Add_Date=P(Date), Cust_OpenDate_Of_Oldest_Account=P(Date)&amp;gt;}Cust_Name_Key)&lt;/P&gt;&lt;P&gt;This will filter to accounts in the same month if you select one month.&amp;nbsp; If you select two months, it means the activity occurred in one of the months, but not necessarily the same month for a given account.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want only those accounts where the activity happened in the same month, you could modify as:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Add_Date=P(Date), Cust_OpenDate_Of_Oldest_Account=P(Date),&lt;BR /&gt;Cust_Name_Key={"=monthstart(Add_Date)=monthstart(Cust_OpenDate_Of_Oldest_Account)"}&amp;gt;}&lt;BR /&gt;DISTINCT Cust_Name_Key)&lt;/P&gt;&lt;P&gt;If you wanted to do that kind of month matching, it's probably best to do it in the script and set a flag for those accounts where the month is equal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 22:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-two-dates-merging-into-one-date/m-p/1584697#M740120</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-05-24T22:15:28Z</dc:date>
    </item>
  </channel>
</rss>

