<?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 count previous week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-previous-week/m-p/1291338#M403711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;There 2 count numbers i would like to represent:&lt;/P&gt;&lt;P&gt;1) number of faults which happen today until a cretin hour.&lt;/P&gt;&lt;P&gt;2) number of faults which happen on the same day and hour a week before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue with the 2nd count.&lt;/P&gt;&lt;P&gt;following my example:&lt;/P&gt;&lt;P&gt;lets say that now its 22/11/2016 10:00AM and i've create a count of faults starting from the begining of today untill now 10AM - alreay made this part&lt;/P&gt;&lt;P&gt;the problem start when i want to create a count of the 15/11/16 from begining of that day(15/11/16) untill 10AM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code i wrote:&lt;/P&gt;&lt;P&gt;variable:&lt;/P&gt;&lt;P&gt;$(v_seven_days) = date(MIN(fault_date) -7) &lt;/P&gt;&lt;P&gt;$(v_seven_days_hour)= hour(date(MIN(fault_date)-7 , 'dd/MM/yyyy hh:mm:ss') )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;fault_date= {'$(=$(v_seven_days))'}, hour_falut= {'&amp;gt;=$(v_seven_days_hour) = hour(now()) '}&amp;gt;} fault_number)&lt;/P&gt;&lt;P&gt;but it's not working &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2016 14:29:45 GMT</pubDate>
    <dc:creator>nicki1926</dc:creator>
    <dc:date>2016-11-22T14:29:45Z</dc:date>
    <item>
      <title>count previous week</title>
      <link>https://community.qlik.com/t5/QlikView/count-previous-week/m-p/1291338#M403711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;There 2 count numbers i would like to represent:&lt;/P&gt;&lt;P&gt;1) number of faults which happen today until a cretin hour.&lt;/P&gt;&lt;P&gt;2) number of faults which happen on the same day and hour a week before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue with the 2nd count.&lt;/P&gt;&lt;P&gt;following my example:&lt;/P&gt;&lt;P&gt;lets say that now its 22/11/2016 10:00AM and i've create a count of faults starting from the begining of today untill now 10AM - alreay made this part&lt;/P&gt;&lt;P&gt;the problem start when i want to create a count of the 15/11/16 from begining of that day(15/11/16) untill 10AM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code i wrote:&lt;/P&gt;&lt;P&gt;variable:&lt;/P&gt;&lt;P&gt;$(v_seven_days) = date(MIN(fault_date) -7) &lt;/P&gt;&lt;P&gt;$(v_seven_days_hour)= hour(date(MIN(fault_date)-7 , 'dd/MM/yyyy hh:mm:ss') )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;fault_date= {'$(=$(v_seven_days))'}, hour_falut= {'&amp;gt;=$(v_seven_days_hour) = hour(now()) '}&amp;gt;} fault_number)&lt;/P&gt;&lt;P&gt;but it's not working &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 14:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-previous-week/m-p/1291338#M403711</guid>
      <dc:creator>nicki1926</dc:creator>
      <dc:date>2016-11-22T14:29:45Z</dc:date>
    </item>
  </channel>
</rss>

