<?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: Canonical date with 2 dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897452#M655779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for giving it a shot. I tried your solution and i'm getting the same result with the fiscal year 2014 selection. I'll post an update of where i'm at with this soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2015 17:50:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-19T17:50:15Z</dc:date>
    <item>
      <title>Canonical date with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897446#M655773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've read the QlikDesign Blogs by &lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="4003" data-objecttype="3" href="https://community.qlik.com/people/hic" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;hic&lt;/A&gt; surrounding these topics, and i'm still at a total loss. I've tried this many different ways with an app that has just two dates (invoice created-on date and accounting document posting date). The issue is that invoicing a customer will &lt;EM style="font-weight: inherit; font-family: inherit;"&gt;create&lt;/EM&gt; an accounting document in SAP, but the actual date when this accounting document is &lt;EM style="font-weight: inherit; font-family: inherit;"&gt;posted &lt;/EM&gt;(actually effective) can vary. What i'm essentially trying to do is to get a sum of used and new products &lt;EM style="font-weight: inherit; font-family: inherit;"&gt;by &lt;/EM&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;customer&lt;/EM&gt; (SoldTo) and also get the total revenue (Parts Revenue) of each of those customers for a certain area of the business (Parts). The new/used products sum is working and also changing according to selections made in my fiscal calendar (pertains to invoice date). But, i can't get the Parts Revenue to change (pertains to posting date) when making calendar selections. It stays the same... no matter what you select:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-797770-89487/fop.PNG" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="fop.PNG" class="jive-image image-1" height="62" src="https://community.qlik.com/legacyfs/online/89520_fop.PNG" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="667" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Is there any front-end expressions that i haven't thought of trying yet? Or, is this strictly a data model issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-797770-89488/snootymodel.PNG" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="snootymodel.PNG" class="jive-image image-2" height="806" src="https://community.qlik.com/legacyfs/online/89521_snootymodel.PNG" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="417" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SoldTo is the dimension of my chart in the 1st screen snip. DATE field is going to connect my model to the Accounting Fiscal Calendar.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This is what the CanonicalCal Table script looks like right now:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-797770-89501/coocoocal.PNG" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="coocoocal.PNG" class="jive-image image-3" height="375" src="https://community.qlik.com/legacyfs/online/89522_coocoocal.PNG" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="348" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;As you all can see, i dropped fields from both of the main tables to avoid synthetic keys and/or circular references. However, this could be wrong and might be part of my problem.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;When i make a Year selection, i'd simply like to see the revenue &lt;EM&gt;posted&lt;/EM&gt; for that SoldTo (customer) and the number of cars &lt;EM&gt;invoiced &lt;/EM&gt;to them at the same time.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This issue has plagued me for weeks and any input would be greatly, greatly appreciated.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks a ton,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 19:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897446#M655773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-15T19:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897447#M655774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are both the values of DateFlag available when you select a particular year?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 06:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897447#M655774</guid>
      <dc:creator>vivek_niti</dc:creator>
      <dc:date>2015-06-17T06:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897448#M655775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create two different Calendars and use those calendar in the expression&lt;/P&gt;&lt;P&gt;lik this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(Sum({$&amp;lt; DisCALYear = {$(=Max(DisCALYear))},&lt;/P&gt;&lt;P&gt;BuilCALMonthID={$(=max({$&amp;lt; DisCALMonthID = {$(=Max(DisCALMonthID))} ,DisCALYear = {$(=Max(DisCALYear))} &amp;gt;}BuilCALMonthID) } &amp;gt; } TotalVolume),0.00)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 06:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897448#M655775</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-06-17T06:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897449#M655776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue here is that i have a Ficscal Accounting Master Calendar that i'm plugging in to by DATE field to make fiscal year, quarter, and month selections built into a pre-built template.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 16:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897449#M655776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-18T16:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897450#M655777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes; However, when i select a particular fiscal accounting year (it works for standard calendar year), every year in the YearFlag field relates correctly except for 2014. When i select fiscal year 2014, YearFlag associates all years.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89980_Capture.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for the late responses to both of you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 16:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897450#M655777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-18T16:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897451#M655778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Instead of creating the yearflag while concatenating take a distinct resident load of the new table and then create the year flag. And don't create a DateFlag in the calendar create it in the transaction table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CononicalCal_temp:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; InvoiceRef AS Invoice,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SoldTo,&lt;/P&gt;&lt;P&gt;&amp;nbsp; PostingDate AS Date&lt;/P&gt;&lt;P&gt;RESIDENT BSEGreload;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Invoice,&lt;/P&gt;&lt;P&gt;&amp;nbsp; InvoiceDate AS Date&lt;/P&gt;&lt;P&gt;RESIDENT VBRP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CononicalCal:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp; Invoice,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SoldTo,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(Date) AS YearFlag&lt;/P&gt;&lt;P&gt;RESIDENT CononicalCal_temp;&lt;/P&gt;&lt;P&gt;DROP TABLE CononicalCal_temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 03:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897451#M655778</guid>
      <dc:creator>vivek_niti</dc:creator>
      <dc:date>2015-06-19T03:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date with 2 dates</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897452#M655779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for giving it a shot. I tried your solution and i'm getting the same result with the fiscal year 2014 selection. I'll post an update of where i'm at with this soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 17:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-with-2-dates/m-p/897452#M655779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-19T17:50:15Z</dc:date>
    </item>
  </channel>
</rss>

