<?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: Filter data on workdays and weekends in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-data-on-workdays-and-weekends/m-p/445057#M1156582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a field that group your dates in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATEFIELD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(weekday(DATEFIELD) &amp;lt;5, 'Mon - Fri', 'Weekend') as WeekDayGrouping,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2013 12:14:45 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-02-18T12:14:45Z</dc:date>
    <item>
      <title>Filter data on workdays and weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-data-on-workdays-and-weekends/m-p/445056#M1156581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a dashboard where I need to display a chart with the time or date on the x-axis and the gas consumption on the y-axis.&lt;BR /&gt;I need to 'filter' the data according to the type of day. I need to make a distinction between workdays and weekends. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, when i click on a button "Mon - Fri", only those days with gasconsumption values must be shown in the chart.&lt;BR /&gt;The same applies to weekends.&lt;BR /&gt;How can I accomplish the above? I'm have a master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nazeem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Added the fact that I'm have a master calendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 12:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-data-on-workdays-and-weekends/m-p/445056#M1156581</guid>
      <dc:creator />
      <dc:date>2013-02-18T12:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data on workdays and weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-data-on-workdays-and-weekends/m-p/445057#M1156582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a field that group your dates in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATEFIELD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(weekday(DATEFIELD) &amp;lt;5, 'Mon - Fri', 'Weekend') as WeekDayGrouping,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 12:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-data-on-workdays-and-weekends/m-p/445057#M1156582</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-02-18T12:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data on workdays and weekends</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-data-on-workdays-and-weekends/m-p/445058#M1156583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I forgot to mention that I have a master calendar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Is your provided solution still the best, or is there a 'better' solution which makes use of the master calenda&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer!&lt;BR /&gt;I implemented your code-snippet into the master calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: nazeemsoeltan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 12:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-data-on-workdays-and-weekends/m-p/445058#M1156583</guid>
      <dc:creator />
      <dc:date>2013-02-18T12:22:06Z</dc:date>
    </item>
  </channel>
</rss>

