<?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: Days vs Depth- Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Days-vs-Depth-Script/m-p/1078066#M637361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I not sure I understand your setting. Would you be able to share a qvw sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2016 18:10:53 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-07T18:10:53Z</dc:date>
    <item>
      <title>Days vs Depth- Script</title>
      <link>https://community.qlik.com/t5/QlikView/Days-vs-Depth-Script/m-p/1078064#M637359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble calculating/scripting the cumulative days at a specific depth in QlikView. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I currently have an sql table which pulls in the date and the depth at that specific date.&amp;nbsp; But instead of the date as a dimension I want a count of days up to that specific point. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An aggr(count(Days), Dim) brings in a total count of days which does not work for my analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current:&lt;/STRONG&gt; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Depth&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp; 1500&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp; 1000&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3/1/2016 | 3/2/2016 | 3/3/2016 | 3/4/2016 | 3/5/2016 |&amp;nbsp;&amp;nbsp;&amp;nbsp; days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Depth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 | 1 | 2 | 3 | 4 | 5 |&amp;nbsp;&amp;nbsp;&amp;nbsp; days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please advise? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jared&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 17:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-vs-Depth-Script/m-p/1078064#M637359</guid>
      <dc:creator />
      <dc:date>2016-04-07T17:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Days vs Depth- Script</title>
      <link>https://community.qlik.com/t5/QlikView/Days-vs-Depth-Script/m-p/1078065#M637360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a calculated dimension like&lt;/P&gt;&lt;P&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;Aggr( days -Min(TOTAL days), days)&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;edit: Take care that your days date field shows a numeric representation, e.g. by using a default DateFormat in your script&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;SET DateFormat = 'M/D/YYYY';&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 18:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-vs-Depth-Script/m-p/1078065#M637360</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-07T18:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Days vs Depth- Script</title>
      <link>https://community.qlik.com/t5/QlikView/Days-vs-Depth-Script/m-p/1078066#M637361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I not sure I understand your setting. Would you be able to share a qvw sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 18:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-vs-Depth-Script/m-p/1078066#M637361</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-07T18:10:53Z</dc:date>
    </item>
  </channel>
</rss>

