<?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: Date as a Percentage in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-as-a-Percentage/m-p/1255671#M396839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your assumption (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;So 0% would be transDTE = onsaleDTE, and 100% would be transDTE = eventDTE?) is correct.&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;Will try out your suggestion and reply to thread.&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;Thanks as always for assistance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 01:54:40 GMT</pubDate>
    <dc:creator>evansabres</dc:creator>
    <dc:date>2016-11-16T01:54:40Z</dc:date>
    <item>
      <title>Date as a Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Date-as-a-Percentage/m-p/1255668#M396836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to create a chart to visualize sales trend for different events that have different lengths of time that they were on-sale for. However, one event could possibly have an on-sale length of 40 days whereas another could have an on-sale length of 200 days. So, in an attempt to normalize these periods of time, I am wondering if it would be possible to create a time dimension that is a percentage of time elapsed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My fields are eventDTE (actual date of the event date) transDTE (transaction date) onsaleDTE (date tickets went on sale) and netSoldQTY (number of tickets sold)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is straightforward, =NUM(SUM(netSoldQTY),'#,###.')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on how I would create the time dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of a possible scenario:&lt;/P&gt;&lt;P&gt;eventDTE = 10/13/2016&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;transDTE = 10/01/2016&lt;/P&gt;&lt;P&gt;onsaleDTE = 9/17/2016 (this is constant)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 21:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-as-a-Percentage/m-p/1255668#M396836</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2016-11-15T21:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date as a Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Date-as-a-Percentage/m-p/1255669#M396837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you describe your calculation and expected result given some more sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 22:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-as-a-Percentage/m-p/1255669#M396837</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-11-15T22:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date as a Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Date-as-a-Percentage/m-p/1255670#M396838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So 0% would be transDTE = onsaleDTE, and 100% would be transDTE = eventDTE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;(transDTE - onsaleDTE)/(eventDTE - onsaleDTE) as PercentElapsed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it seems like to be useful as a dimension for a chart, you'd need to group these, like 0%-10%, 10%-20%, and so on? Whatever interval makes sense. Here's 10%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;class((transDTE - onsaleDTE)/(eventDTE - onsaleDTE),.1) as PercentElapsedRange&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 23:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-as-a-Percentage/m-p/1255670#M396838</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-11-15T23:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date as a Percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Date-as-a-Percentage/m-p/1255671#M396839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your assumption (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;So 0% would be transDTE = onsaleDTE, and 100% would be transDTE = eventDTE?) is correct.&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;Will try out your suggestion and reply to thread.&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;Thanks as always for assistance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 01:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-as-a-Percentage/m-p/1255671#M396839</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2016-11-16T01:54:40Z</dc:date>
    </item>
  </channel>
</rss>

