<?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: Set Analysis Sum Distinct Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Sum-Distinct-Values/m-p/1760665#M718676</link>
    <description>&lt;P&gt;I found&amp;nbsp; a way to make this work with count(distinct(&amp;lt;datefield&amp;gt;) to figure the number of days in a specific week, so i can divive all workhours , which works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 11:51:03 GMT</pubDate>
    <dc:creator>Murlimes</dc:creator>
    <dc:date>2020-11-11T11:51:03Z</dc:date>
    <item>
      <title>Set Analysis Sum Distinct Values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Sum-Distinct-Values/m-p/1760553#M718675</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a dataset which shows me how many employess were present on a specific day and&amp;nbsp; for how many workhours /weekly they are working based on their contract&lt;/P&gt;&lt;P&gt;I need to show the headcount for every day and the amount of hours based on their contract. (i,.e 40 per week)&lt;/P&gt;&lt;P&gt;So im counting every employees in the dataset which has an entrydate and multipling it with their workhours.&lt;/P&gt;&lt;P&gt;I can do this for a daily basis, but when i want to show it on a weekly/monthly basis the hours of the whole week are being added up.&amp;nbsp; So it shows me a headcount of 11 but instead of 440 it will show me 440 * 7 workhours.&amp;nbsp; I cant just divide by 7 because some weeks at the monthstart dont have 7 days.&lt;/P&gt;&lt;P&gt;Is there a way to either figure how many weekdays a specific week has, so i can just divide it by the amount of days, or any a expression&amp;nbsp; like&amp;nbsp; sum(distinct(workhours) to show this properly&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Sum-Distinct-Values/m-p/1760553#M718675</guid>
      <dc:creator>Murlimes</dc:creator>
      <dc:date>2020-11-20T18:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Sum Distinct Values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Sum-Distinct-Values/m-p/1760665#M718676</link>
      <description>&lt;P&gt;I found&amp;nbsp; a way to make this work with count(distinct(&amp;lt;datefield&amp;gt;) to figure the number of days in a specific week, so i can divive all workhours , which works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 11:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Sum-Distinct-Values/m-p/1760665#M718676</guid>
      <dc:creator>Murlimes</dc:creator>
      <dc:date>2020-11-11T11:51:03Z</dc:date>
    </item>
  </channel>
</rss>

