<?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: Offsetting Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Offsetting-Dates/m-p/997477#M339263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the max. offset isn't very big it could be that additionally date- and/or flag-fields are useful for those calculations. Another point which I would try out if a dual() dimension couldn't be helpful. I mean to display other dimension-values as used for the calculations, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dual(&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;-2,'DD-MMM-YYYY')&lt;/SPAN&gt;, Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or reversed (maybe you could avoid with such approach your below-expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 10:31:34 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-09-22T10:31:34Z</dc:date>
    <item>
      <title>Offsetting Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Offsetting-Dates/m-p/997476#M339262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Just wanted to check to see if anyone has encounter this before an knows of an elegant solution before I spend too much time trying to engineer one&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I have a simple data table with Dates and Stock Volumes &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The chart needs to use date as a dimension and sum the Stock Volumes (Easy so far)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The customer wants a slider to control a date offset. -1 Day -2 Days, etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f4e79; font-size: 12pt; font-family: Calibri;"&gt;So the results which would have shown as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f4e79; font-size: 12pt; font-family: Calibri;"&gt;16-Sep&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SV 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f4e79; font-size: 12pt; font-family: Calibri;"&gt;Now shows as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f4e79; font-size: 12pt; font-family: Calibri;"&gt;&lt;STRONG&gt;14-Sep &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SV 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if the user changes the date offset to -2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Basically all the dates shift back two. Now, I had thought about using a calculated dimension (&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;-2,'DD-MMM-YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;) as a simple cheat and hide the actual Date dimension column that’s driving the calculations. This would work although I have other numbers in the chart that don’t want to be affected by this offset and need to show the actual date, worst case would be to have two charts which maybe won’t be an issue although if it’s a simple trick that I just can’t think of right now I’d rather not split them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Ideally it should be done with Set Analysis. Has anyone encountered this before? Any insight would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Also, just to note I've tried using the Below function (&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;below&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[SV]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vOperationDateOffset&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;). Unfortunately this only steps back on the possible date values for SV. So in the example earlier it won't step back two days but two possible lines for that expression. I think it maybe some combination of this and aggr() but not too sure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Richard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 09:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Offsetting-Dates/m-p/997476#M339262</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2015-09-22T09:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Offsetting Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Offsetting-Dates/m-p/997477#M339263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the max. offset isn't very big it could be that additionally date- and/or flag-fields are useful for those calculations. Another point which I would try out if a dual() dimension couldn't be helpful. I mean to display other dimension-values as used for the calculations, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dual(&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;-2,'DD-MMM-YYYY')&lt;/SPAN&gt;, Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or reversed (maybe you could avoid with such approach your below-expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 10:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Offsetting-Dates/m-p/997477#M339263</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-22T10:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Offsetting Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Offsetting-Dates/m-p/997478#M339264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus. the Offset should be only a few days. Probably a spread of ten at the most so I see where you're coming from with adding additional columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally though I'd like it to be truly dynamic if possible although I starting to get the feeling it may not be possible &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 10:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Offsetting-Dates/m-p/997478#M339264</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2015-09-23T10:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Offsetting Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Offsetting-Dates/m-p/997479#M339265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's difficult to say then even if it would be possible to include all the needed challanges into one chart - if it's then practically and fast enough (I had have already managed to really slow down very small applications with heavily nested dimension/expression-constructs - not to mention the efforts to build and maintain it) so that two (or more) objects might be a better solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 10:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Offsetting-Dates/m-p/997479#M339265</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-23T10:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Offsetting Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Offsetting-Dates/m-p/997480#M339266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I agree Marcus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data size is small so performance wouldn't be an issue which is why I wanted to explore the option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have split the charts for now as it was never a requirement. Its always interesting to know if some of these things are in fact possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Offsetting-Dates/m-p/997480#M339266</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2015-09-23T12:39:11Z</dc:date>
    </item>
  </channel>
</rss>

