<?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: Counting number of occurences of day of week in last 7 days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-number-of-occurences-of-day-of-week-in-last-7-days/m-p/1661203#M730698</link>
    <description>&lt;P&gt;Hello Taoufiq,&lt;/P&gt;&lt;P&gt;I just tried. There is no error but it results in no values.&lt;/P&gt;&lt;P&gt;There are however login values for the last week in the dataset.&lt;/P&gt;</description>
    <pubDate>Sat, 28 Dec 2019 22:19:37 GMT</pubDate>
    <dc:creator>DutchHans</dc:creator>
    <dc:date>2019-12-28T22:19:37Z</dc:date>
    <item>
      <title>Counting number of occurences of day of week in last 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-number-of-occurences-of-day-of-week-in-last-7-days/m-p/1661195#M730696</link>
      <description>&lt;P&gt;I have a dataset containing all the login dates of users during the last 364 days (52 x 7). The field name is Start and is a datetime value.&lt;/P&gt;&lt;P&gt;I am using a Bar Chart to display the mean value of logins on a specific day a week. The used dimension is&amp;nbsp;WeekDay(Start).&lt;/P&gt;&lt;P&gt;I have two expressions:&lt;BR /&gt;Count({$&amp;lt;DefaultOgId={"&amp;gt;0"}&amp;gt;}Start)/52&lt;BR /&gt;Count({$&amp;lt;DefaultWnId={"&amp;gt;0"}&amp;gt;}Start)/52&lt;/P&gt;&lt;P&gt;This works fine (see attached capture.png), but now I want to add two extra expressions that only show the number of logins in the last 7 days of the dataset. So I can see the most recent counts alongside the mean value on that day during the last year.&lt;/P&gt;&lt;P&gt;I cannot figure out how to make that work!&lt;/P&gt;&lt;P&gt;This does not work:&amp;nbsp;Count({$&amp;lt;DefaultWnId={"&amp;gt;0"},Start={"&amp;gt;=$(=Today()-6)"}&amp;gt;}Start)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-number-of-occurences-of-day-of-week-in-last-7-days/m-p/1661195#M730696</guid>
      <dc:creator>DutchHans</dc:creator>
      <dc:date>2024-11-16T01:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of occurences of day of week in last 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-number-of-occurences-of-day-of-week-in-last-7-days/m-p/1661201#M730697</link>
      <description>&lt;P&gt;can you test :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Count({$&amp;lt;DefaultWnId={"&amp;gt;0"},Start={"&amp;gt;=$(=Date(Today()-6))"}&amp;gt;}Start)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 28 Dec 2019 19:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-number-of-occurences-of-day-of-week-in-last-7-days/m-p/1661201#M730697</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-28T19:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of occurences of day of week in last 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-number-of-occurences-of-day-of-week-in-last-7-days/m-p/1661203#M730698</link>
      <description>&lt;P&gt;Hello Taoufiq,&lt;/P&gt;&lt;P&gt;I just tried. There is no error but it results in no values.&lt;/P&gt;&lt;P&gt;There are however login values for the last week in the dataset.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2019 22:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-number-of-occurences-of-day-of-week-in-last-7-days/m-p/1661203#M730698</guid>
      <dc:creator>DutchHans</dc:creator>
      <dc:date>2019-12-28T22:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of occurences of day of week in last 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-number-of-occurences-of-day-of-week-in-last-7-days/m-p/1661204#M730699</link>
      <description>&lt;P&gt;It seems to work like this:&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;DefaultOgId={"&amp;gt;0"}&amp;gt;}if(Start&amp;gt;ToDay()-6,1,0))&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2019 22:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-number-of-occurences-of-day-of-week-in-last-7-days/m-p/1661204#M730699</guid>
      <dc:creator>DutchHans</dc:creator>
      <dc:date>2019-12-28T22:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Counting number of occurences of day of week in last 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-number-of-occurences-of-day-of-week-in-last-7-days/m-p/1661497#M730700</link>
      <description>&lt;P&gt;It appears you got things sorted, I am going to mark your last post as the solution given you confirmed that worked.&amp;nbsp; I just wanted to pass along some other potentially useful info.&amp;nbsp; Here is a specific Design Blog link related to dates in set analysis that may be useful, and below that is the base URL to the Design Blog area in case you want to search further&amp;nbsp; now or in&amp;nbsp; the future.&amp;nbsp; There are hundreds of how-to related posts in this area from our experts, so should be helpful when looking for ideas on how to approach different topics.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 14:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-number-of-occurences-of-day-of-week-in-last-7-days/m-p/1661497#M730700</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-30T14:17:03Z</dc:date>
    </item>
  </channel>
</rss>

