<?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: Count - if - date in chart expression for rolling week? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261831#M1180335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Through the use of bookmarks (again), I found a way to permanently detach the results of my gauge chart. I made a bookmark with the required search conditions via a search box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=dev_finish_date&amp;gt;now()-7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...along with the app_id "22" selected. For the chart I used this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=Count({BM08} request_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Done. Now, no matter what bookmarks or records the user clicks on, the desired calculation will show. Thanks for all the help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Feb 2012 13:40:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-12T13:40:07Z</dc:date>
    <item>
      <title>Count - if - date in chart expression for rolling week?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261827#M1180326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two fields, &lt;STRONG&gt;dev_finish_date &lt;/STRONG&gt;and &lt;STRONG&gt;request_id&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a gauge chart counting all the request_id's with a dev_finish_date occurring in the past seven days (rolling). Another field, &lt;STRONG&gt;&lt;STRONG&gt;app_&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;id&lt;/STRONG&gt; has to be included in the calculation, too, as a required selection. I've racked my brain and the best syntax I can come up with for the gauge chart's expression is this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;count({&amp;lt;dev_finish_date={[&amp;gt;now-7]}, app_id={'22'}&amp;gt;} request_id&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but that obviously isn't working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 23:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261827#M1180326</guid>
      <dc:creator />
      <dc:date>2012-02-07T23:20:06Z</dc:date>
    </item>
    <item>
      <title>Count - if - date in chart expression for rolling week?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261828#M1180328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;count({&amp;lt;dev_finish_date={"&amp;gt;$(=date(today()-7))"}, app_id={'22'}&amp;gt;} request_id&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 23:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261828#M1180328</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-07T23:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count - if - date in chart expression for rolling week?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261829#M1180330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get "No data to display" for some reason. As long as it can count the number of records in the "request_id" field, I'm fine with that. I can just apply a bookmark upon sheet load for the "app_id" field. This doesn't work, though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;count({&amp;lt;dev_finish_date={'Today-7'}&amp;gt;} request_id)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;or this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;count({&amp;lt;dev_finish_date={"&amp;gt;$(=date(today()-7))"}&amp;gt;} request_id&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;...and I still have three more date calculations to put into graph form by Tuesday. After someone helps me sort this out, can anyone tell me what language Qlikview is written in so I can pick up a reference book?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Feb 2012 11:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261829#M1180330</guid>
      <dc:creator />
      <dc:date>2012-02-12T11:54:23Z</dc:date>
    </item>
    <item>
      <title>Count - if - date in chart expression for rolling week?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261830#M1180332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume it's just a format issue. How is your dev_finish_date formatted? and what is your default DateFormat (set in the script)? &lt;/P&gt;&lt;P&gt;You could also give it a try to remove the date() function from the set expression search expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: monospace; font-size: 12px; background-color: #ffffff;"&gt;count({&amp;lt;dev_finish_date={"&amp;gt;$(today()-7)"}, app_id={'22'}&amp;gt;} request_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Feb 2012 13:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261830#M1180332</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-12T13:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count - if - date in chart expression for rolling week?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261831#M1180335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Through the use of bookmarks (again), I found a way to permanently detach the results of my gauge chart. I made a bookmark with the required search conditions via a search box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=dev_finish_date&amp;gt;now()-7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...along with the app_id "22" selected. For the chart I used this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=Count({BM08} request_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Done. Now, no matter what bookmarks or records the user clicks on, the desired calculation will show. Thanks for all the help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Feb 2012 13:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261831#M1180335</guid>
      <dc:creator />
      <dc:date>2012-02-12T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count - if - date in chart expression for rolling week?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261832#M1180336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason, the bookmarked search is "stale" every time I load/reload the QVD, For example, when I loaded it today and checked the results of the bookmarked search, it pulled up dates from 2/21-2/23 as opposed to 2/26-2/24. The expression I'm using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({BM08} request_id)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...where the bookmark is a result of the search where app_id "22" is manually selected and the following string is entered into the search box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=dev_finish_date&amp;gt;now()-3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The criteria has changed to the past 3 days, hence the 3. I've also tried "today" in place of "now", but the same thing happens. I have the document reload on open via module operation, so it shouldn't be a data lag issue. In answer to the above question concerning date format, the dates are formatted as 2/26/2012 10:41:34 AM; using a 24 hour clock (13:00, 14:00, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two identical expressions that were posted to try out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;dev_finish_date={"&amp;gt;$(=date(today()-7))"}, app_id={'22'}&amp;gt;} request_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only give me a "no data to display" on the gauge chart. I see there's a parantheses missing, but I can't figure out where to put it. Please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2012 13:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261832#M1180336</guid>
      <dc:creator />
      <dc:date>2012-02-26T13:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count - if - date in chart expression for rolling week?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261833#M1180337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a thought; would the bookmarked search behave as required if there was a dollar sign somewhere in there? If so, what would be the correct search string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tried this as an expression, as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;dev_finish_date={"&amp;gt;$(=date(today()-3))"},app_id={'22'}&amp;gt;} request_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this gave me a result of 0 on the gauge chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2012 13:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261833#M1180337</guid>
      <dc:creator />
      <dc:date>2012-02-26T13:42:11Z</dc:date>
    </item>
    <item>
      <title>Count - if - date in chart expression for rolling week?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261834#M1180338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The missing parenthesis is needed at the very end of the line, closing the count() function arguments.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;=count({&amp;lt;dev_finish_date={"&amp;gt;$(=date(today()-7))"}, app_id={'22'}&amp;gt;} request_id&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be careful using now() function, the standard timer mode here is 1, so you will constanty update the time and function (could slow down the system). Check the different timer modes in the Help for detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what you mean with the bookmarked search and the dollar sign, could you post your expression here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your dev_finish dates are actually timestamps, so just make sure to format the search expression accordingly, try&amp;nbsp; these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;count({&amp;lt;dev_finish_date={"&amp;gt;$(=timestamp(today()-7),'M/DD/YYYY hh:mm:ss TT')"}, app_id={'22'}&amp;gt;} request_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #eef4f9; font-family: Arial;"&gt;count({&amp;lt;dev_finish_date={"&amp;gt;$(=timestamp(today()-7))"}, app_id={'22'}&amp;gt;} request_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #eef4f9; font-family: Arial;"&gt;count({&amp;lt;dev_finish_date={"&amp;gt;$(=today()-7)"}, app_id={'22'}&amp;gt;} request_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; background-color: #eef4f9; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried the expressions also in a text box? Just had a thought that it might be a gauge chart issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a small sample file here to the forum?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2012 14:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261834#M1180338</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-02-26T14:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count - if - date in chart expression for rolling week?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261835#M1180339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. The suggestion you provided:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;dev_finish_date={"&amp;gt;$(=timestamp(today()-7))"}, app_id={'22'}&amp;gt;} request_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works for now when used as the expression in the gauge chart. I'll see if it's consistent come tomorrow afternoon. That's the problem with working with date fields, I've discovered; you might have to wait a day or two to get another "data sample" when it comes to consistency checks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2012 15:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-if-date-in-chart-expression-for-rolling-week/m-p/261835#M1180339</guid>
      <dc:creator />
      <dc:date>2012-02-26T15:03:42Z</dc:date>
    </item>
  </channel>
</rss>

