<?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 Compare Dates in Timeline in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235533#M24328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to compare records, by date, to the x-axis timeline date.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension = ReferenceDate (common calendar date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;For each reference date, I wish to:&lt;/P&gt;&lt;P&gt;if(ObjectAddedDate &amp;lt; ReferenceDate,&amp;nbsp; count(object.id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively I assume this could be done with set analysis&lt;/P&gt;&lt;P&gt;count({$&amp;lt;ObjectAddedDate={"&amp;lt;$(=ReferenceDate)"}&amp;gt;}object.id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just not sure I'm going about this the right way or if this is possible.&amp;nbsp; Obviously it's not working yet &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2016 05:18:09 GMT</pubDate>
    <dc:creator>joey_lutes</dc:creator>
    <dc:date>2016-12-09T05:18:09Z</dc:date>
    <item>
      <title>Compare Dates in Timeline</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235533#M24328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to compare records, by date, to the x-axis timeline date.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension = ReferenceDate (common calendar date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;For each reference date, I wish to:&lt;/P&gt;&lt;P&gt;if(ObjectAddedDate &amp;lt; ReferenceDate,&amp;nbsp; count(object.id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively I assume this could be done with set analysis&lt;/P&gt;&lt;P&gt;count({$&amp;lt;ObjectAddedDate={"&amp;lt;$(=ReferenceDate)"}&amp;gt;}object.id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just not sure I'm going about this the right way or if this is possible.&amp;nbsp; Obviously it's not working yet &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 05:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235533#M24328</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-12-09T05:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Dates in Timeline</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235534#M24329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give an example with data? What is the source data and what is the result table you expect based on the source table? Tables first, we'll do the line chart later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 08:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235534#M24329</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-09T08:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Dates in Timeline</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235535#M24330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set expression won't work, because it's evaluated once per chart, not per dimensional value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try as expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count( if(ObjectAddedDate &amp;lt; ReferenceDate,&amp;nbsp; object.id))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(or maybe you need a Count(DISTINCT ...) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;but it's hard to suggest a solution, without knowing the context, including your data model and data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;You may also want to look into&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2940"&gt;Creating Reference Dates for Intervals&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to count objects with a added (and potentially removed) date over time. Removed or end date could be statically set to Today(), for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 10:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235535#M24330</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-12-09T10:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Dates in Timeline</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235536#M24331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've gone about it a different way by using HICs canonical calendar / applymap method and use datetypes.&amp;nbsp; What I've done does seem to have done the trick there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;[$(vDim)Date] //canonical datefield set in load script&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[$(vDim)DateType] = {"$(vDim)Added"}&amp;gt;}[$(vDim).id])&amp;nbsp; //datetype created in loadscript&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using that method, I only have 1 issue:&lt;/P&gt;&lt;P&gt;For dates where nothing was added (are null), the chart(bar) does not populate it - even if I check 'show null values'&lt;/P&gt;&lt;P&gt;Is this normal behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="vdim.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146260_vdim.JPG" style="height: 550px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a 'zoomed' image of my data model, and a 'zoomed out' version (don't be alarmed - there are 6 'entities', all with similar structure to the blown up model, creating many tables).&amp;nbsp; There is no 'master' canonical calendar (see &lt;A href="https://community.qlik.com/message/1171937"&gt;Add Date to Incremental Load with multiple tables&lt;/A&gt;) - which is causing me no end of headaches, but I'm attempting to work around it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll notice site.id has a link going off into space - it links to another disparate table.&amp;nbsp; I'm wondering if that might be causing this?&amp;nbsp; Perhaps I need to load site.id&amp;nbsp; then site.id as site-cal.id then link that one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goals for this are to show temporal movement of this network.&amp;nbsp; It's an incremental load, and the user wants to see everything, by load, adds, changes, deletes, timelines, etc - by any given moment in time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is truly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="modelzoom.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/146261_modelzoom.JPG" style="height: 534px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="model.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/146262_model.JPG" style="height: 229px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 23:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235536#M24331</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-12-09T23:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Dates in Timeline</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235537#M24332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So here's an idea!&lt;/P&gt;&lt;P&gt;I have a table called 'ReferenceDate'.&amp;nbsp; It's a table of all dates, autogenerated, from min to max.&amp;nbsp; It's not linked to anything, just a table of dates with associated calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each entityalso has its own (entity)Date which is a common date between the different dates within that entity (Added, Verified, Removed) to which it is associated (see model).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if I did this in the load:&lt;/P&gt;&lt;P&gt;Let vReferenceDate = ReferenceDate;&lt;/P&gt;&lt;P&gt;Let $(vDim)Date = $(vReferenceDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would that work??&amp;nbsp; That way, it would tie the two together without creating the sythetic mayhem.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2016 18:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235537#M24332</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-12-10T18:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Dates in Timeline</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235538#M24333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting note:&lt;/P&gt;&lt;P&gt;Issue was only dates displaying on a bar graph where data exists, no other.&lt;/P&gt;&lt;P&gt;Here's what the same expressions produce in a line graph:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="linegraph.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146328_linegraph.JPG" style="height: 71px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension is "siteDate"&lt;/P&gt;&lt;P&gt;Here's a look at the table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sitedate.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/146329_sitedate.jpg" style="height: 193px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The 4 rows not displayed list 'siteRemoved' rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes no sense to me why the same expressions show different results in different graphs, and they either don't show enough dates, or too many.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 22:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-Dates-in-Timeline/m-p/1235538#M24333</guid>
      <dc:creator>joey_lutes</dc:creator>
      <dc:date>2016-12-11T22:25:35Z</dc:date>
    </item>
  </channel>
</rss>

