<?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 Multiple Date, but need one filter based on all Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Date-but-need-one-filter-based-on-all-Dates/m-p/1439371#M818058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an issue where I need to be able to have multiple date, Order Date, Ship Date, Payment Date.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example, I have an Order that has an Order Date in one table, in addition a ship date in another table, and a payment date in another table.&amp;nbsp; I need to link all tables by order number.&amp;nbsp; However I need to be able to have a "Transaction Date" so I can see what happened in a particular month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, Order #123 has an Order Date of 07/31/2017, ShipDate of 08/01/2017, and a PaymentDate of 08/01/2017. &lt;/P&gt;&lt;P&gt;Order #789 has an order date of 07/30/2017, ShipDate of 08/01/2017, and Payment Date of 07/31/2017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to both filter the report on each date, which I am able to do with not problem, but I also want to create a &lt;SPAN style="font-size: 13.3333px;"&gt;"Transaction Date", that I can filter on.&amp;nbsp; So if I create a &lt;SPAN style="font-size: 13.3333px;"&gt;"Transaction Date", and say show me everything that happened in the month of August,&amp;nbsp; It would should be the Order#123 because it has transactions (SHIPDATE and PAYMENTDATE) and it would show me Order#789 because it also has transactions (ShipDate).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can't seem to do this without it creating a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>ljames88</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Multiple Date, but need one filter based on all Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Date-but-need-one-filter-based-on-all-Dates/m-p/1439371#M818058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an issue where I need to be able to have multiple date, Order Date, Ship Date, Payment Date.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example, I have an Order that has an Order Date in one table, in addition a ship date in another table, and a payment date in another table.&amp;nbsp; I need to link all tables by order number.&amp;nbsp; However I need to be able to have a "Transaction Date" so I can see what happened in a particular month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, Order #123 has an Order Date of 07/31/2017, ShipDate of 08/01/2017, and a PaymentDate of 08/01/2017. &lt;/P&gt;&lt;P&gt;Order #789 has an order date of 07/30/2017, ShipDate of 08/01/2017, and Payment Date of 07/31/2017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to both filter the report on each date, which I am able to do with not problem, but I also want to create a &lt;SPAN style="font-size: 13.3333px;"&gt;"Transaction Date", that I can filter on.&amp;nbsp; So if I create a &lt;SPAN style="font-size: 13.3333px;"&gt;"Transaction Date", and say show me everything that happened in the month of August,&amp;nbsp; It would should be the Order#123 because it has transactions (SHIPDATE and PAYMENTDATE) and it would show me Order#789 because it also has transactions (ShipDate).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can't seem to do this without it creating a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Date-but-need-one-filter-based-on-all-Dates/m-p/1439371#M818058</guid>
      <dc:creator>ljames88</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Date, but need one filter based on all Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Date-but-need-one-filter-based-on-all-Dates/m-p/1439372#M818059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your best bet is to create a link table to join all three tables.&lt;/P&gt;&lt;P&gt;Your link table will have following:-&lt;/P&gt;&lt;P&gt;Order No&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Combination of Order No and Order Date as a key to connect with Orders table&lt;/P&gt;&lt;P&gt;Combination of Order No and Ship Date as a key to connect with Shipping table&lt;/P&gt;&lt;P&gt;Combination of Order No and Payment Date as a key to connect with Payments table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your individual tables will have the relevant key and not the Order No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards,&lt;/P&gt;&lt;P&gt;Kuldeep Tak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Date-but-need-one-filter-based-on-all-Dates/m-p/1439372#M818059</guid>
      <dc:creator />
      <dc:date>2017-09-05T15:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Date, but need one filter based on all Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Date-but-need-one-filter-based-on-all-Dates/m-p/1439373#M818060</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;Have you thought of using a canonical date bridge? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its basically a master calendar for your dates! I can just select one date, and it will show everything that was opened and closed on that date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is mine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date Bridge:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;query_id, &lt;/P&gt;&lt;P&gt;query_start_date as CanonicalDate,&lt;/P&gt;&lt;P&gt;'QueryStartDate' as DateType&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Resident Queries;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;query_id, &lt;/P&gt;&lt;P&gt;query_date_last_changed as CanonicalDate,&lt;/P&gt;&lt;P&gt;'QueryEndDate' as DateType&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Resident Queries;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;CanonicalTempMinMax:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Min(CanonicalDate) as CanonicalMinDate,&lt;/P&gt;&lt;P&gt;Max(CanonicalDate) as CanonicalMaxDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident DateBridge;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCanonicalMinDate = Peek('CanonicalMinDate',0,'CanonicalTempMinMax');&lt;/P&gt;&lt;P&gt;LET vCanonicalMaxDate = Peek('CanonicalMaxDate',0,'CanonicalTempMinMax');&lt;/P&gt;&lt;P&gt;LET vCanonicalToday = $(vCanonicalMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//***************************************Temp Calendar&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;CanonicalTempCal:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;date($(vCanonicalMinDate) + rowno()-1) as CanonicalTempDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;AutoGenerate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;$(vCanonicalMaxDate) - $(vCanonicalMinDate)+1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Drop Table CanonicalTempMinMax;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//**************************************Master Calendar&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Canonical_MasterCalendar:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Floor(CanonicalTempDate) As CanonicalDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Week(CanonicalTempDate) As Canonical_Week,&lt;/P&gt;&lt;P&gt;Year(CanonicalTempDate) As Canonical_Year,&lt;/P&gt;&lt;P&gt;Month(CanonicalTempDate) As Canonical_Month,&lt;/P&gt;&lt;P&gt;Day(CanonicalTempDate) As Canonical_Day,&lt;/P&gt;&lt;P&gt;Weekday(CanonicalTempDate) As Canonical_Weekday,&lt;/P&gt;&lt;P&gt;'Q'&amp;amp;ceil(month(CanonicalTempDate)/3) As Canonical_Quarter,&lt;/P&gt;&lt;P&gt;Date(monthstart(CanonicalTempDate), 'MMM-YYYY') As Canonical_MonthYear,&lt;/P&gt;&lt;P&gt;Week(CanonicalTempDate)&amp;amp;'-'&amp;amp;Year(CanonicalTempDate) As Canonical_WeekYear,&lt;/P&gt;&lt;P&gt;inyeartodate(CanonicalTempDate,$(vCanonicalToday),0)*-1 As Canonical_CurYTDFlag,&lt;/P&gt;&lt;P&gt;inyeartodate(CanonicalTempDate,$(vCanonicalToday),-1)*-1 As Canonical_LastYTDFlag,&lt;/P&gt;&lt;P&gt;inmonthtodate(CanonicalTempDate,$(vCanonicalToday),0)*-1 As Canonical_CurMTDFlag,&lt;/P&gt;&lt;P&gt;inmonthtodate(CanonicalTempDate,$(vCanonicalToday),-1)*-1 As Canonical_LastMTDFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Resident CanonicalTempCal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Order By CanonicalTempDate ASC;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Drop Table CanonicalTempCal;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Date-but-need-one-filter-based-on-all-Dates/m-p/1439373#M818060</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2017-09-05T15:51:07Z</dc:date>
    </item>
  </channel>
</rss>

