<?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: Sum a range of billable time between 2 dates in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-a-range-of-billable-time-between-2-dates-in-expression/m-p/768402#M666251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, this will work and give me that first days work of summed totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[Activity Listing Date]={"=[Claim Date]"}&amp;gt;}[Activity Listing Log Time])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to create a second column expression that would do a second day base off the Claim Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[Activity Listing Date]={"=(Date([Claim Date])+1)"}&amp;gt;}[Activity Listing Log Time])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this displays the same summed amount as what appears in that first column.&lt;/P&gt;&lt;P&gt;Does it have more to do with my date comparisons or the actual expression on trying to Sum them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2014 18:18:16 GMT</pubDate>
    <dc:creator>catalyst_75</dc:creator>
    <dc:date>2014-12-19T18:18:16Z</dc:date>
    <item>
      <title>Sum a range of billable time between 2 dates in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-range-of-billable-time-between-2-dates-in-expression/m-p/768400#M666249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table of billable entries. They have a date field of when the activity happened and I have that loaded in the script with a date format of 'mm/dd/yy'. There can be one or many records on each day that I need this table to sum for me according to each claimant. For each claimant, there is one record and is has a Claim Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do with this table is break apart some of the billing listing into date periods. &lt;/P&gt;&lt;P&gt;First period: Claim Date + 4 days&lt;/P&gt;&lt;P&gt;Second period : Claim Date+5 through Claim Date+34&lt;/P&gt;&lt;P&gt;, etc. as to have sort of billing periods or time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my expression and it appears and reads correct to me, but I get zeros in my column unless I have the Activity Listing Date = Claim Date. But that is not letting me do what I want. What I am missing? Or what I am doing wrong as to be able to grab all records between 2 set date in an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[Activity Listing Date]={"&amp;gt;=[Claim Date]&amp;lt;([Claim Date] + 4)"}&amp;gt;}[Activity Listing Log Time])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add note" each of those periods will be in a different expression column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 18:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-range-of-billable-time-between-2-dates-in-expression/m-p/768400#M666249</guid>
      <dc:creator>catalyst_75</dc:creator>
      <dc:date>2014-12-19T18:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sum a range of billable time between 2 dates in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-range-of-billable-time-between-2-dates-in-expression/m-p/768401#M666250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you're not aware that the set is calculated at the chart level, not at the row level. See here for an explanation: &lt;A href="https://community.qlik.com/docs/DOC-4563"&gt;set_analysis_intra-record.qvw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you can create a flag field in the load statement in the script to mark the records that meet your range criteria. If not, you may have to resort to using if-statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 18:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-range-of-billable-time-between-2-dates-in-expression/m-p/768401#M666250</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-19T18:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sum a range of billable time between 2 dates in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-range-of-billable-time-between-2-dates-in-expression/m-p/768402#M666251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, this will work and give me that first days work of summed totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[Activity Listing Date]={"=[Claim Date]"}&amp;gt;}[Activity Listing Log Time])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to create a second column expression that would do a second day base off the Claim Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[Activity Listing Date]={"=(Date([Claim Date])+1)"}&amp;gt;}[Activity Listing Log Time])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this displays the same summed amount as what appears in that first column.&lt;/P&gt;&lt;P&gt;Does it have more to do with my date comparisons or the actual expression on trying to Sum them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 18:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-range-of-billable-time-between-2-dates-in-expression/m-p/768402#M666251</guid>
      <dc:creator>catalyst_75</dc:creator>
      <dc:date>2014-12-19T18:18:16Z</dc:date>
    </item>
  </channel>
</rss>

