<?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 Handling staff in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1566465#M441785</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm making a staff-app but have encounterd a little problem regarding staff that end their employment.&lt;/P&gt;&lt;P&gt;Lets say I have a table similar to this;&lt;/P&gt;&lt;PRE&gt;Staff_tmp:
LOAD * INLINE [
    Id, Name, Hired_date, End_date, Value
    1, Arnold, 2018-01-01, , 8
    2, Steven, 2018-01-01, , 8
    3, Cloude, 2018-01-01, , 8
    4, Emma, 2018-01-01, , 8
    5, Sara, 2018-01-01, 2018-06-01, 8
    6, Donald, 2018-01-01, , 8
    7, Louise, 2018-01-01, , 8
    8, Roland, 2018-01-01, 2018-10-01, 8
    9, Thomas, 2018-01-01, , 8
 ];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is;&lt;/P&gt;&lt;P&gt;1. When the user select ex. july, a textlabel show the number of employees that month (8 since Sara ended in june).&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:55:12 GMT</pubDate>
    <dc:creator>t_hylander</dc:creator>
    <dc:date>2024-11-16T03:55:12Z</dc:date>
    <item>
      <title>Handling staff in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1566465#M441785</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm making a staff-app but have encounterd a little problem regarding staff that end their employment.&lt;/P&gt;&lt;P&gt;Lets say I have a table similar to this;&lt;/P&gt;&lt;PRE&gt;Staff_tmp:
LOAD * INLINE [
    Id, Name, Hired_date, End_date, Value
    1, Arnold, 2018-01-01, , 8
    2, Steven, 2018-01-01, , 8
    3, Cloude, 2018-01-01, , 8
    4, Emma, 2018-01-01, , 8
    5, Sara, 2018-01-01, 2018-06-01, 8
    6, Donald, 2018-01-01, , 8
    7, Louise, 2018-01-01, , 8
    8, Roland, 2018-01-01, 2018-10-01, 8
    9, Thomas, 2018-01-01, , 8
 ];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is;&lt;/P&gt;&lt;P&gt;1. When the user select ex. july, a textlabel show the number of employees that month (8 since Sara ended in june).&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1566465#M441785</guid>
      <dc:creator>t_hylander</dc:creator>
      <dc:date>2024-11-16T03:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Handling staff in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1566494#M441786</link>
      <description>You need some kind of master calendar in your datamodell containing all dates that you are interested to analyse. If you want help creating one there are a lot of examples available in the community or Google search.&lt;BR /&gt;&lt;BR /&gt;With the calendar you can do an intervalmatch. See script below.&lt;BR /&gt;&lt;BR /&gt;Staff:&lt;BR /&gt;LOAD Id, Name, Hired_date, alt(End_date, today()) as End_date, Value INLINE [&lt;BR /&gt;Id, Name, Hired_date, End_date, Value&lt;BR /&gt;1, Arnold, 2018-01-01, , 8&lt;BR /&gt;2, Steven, 2018-01-01, , 8&lt;BR /&gt;3, Cloude, 2018-01-01, , 8&lt;BR /&gt;4, Emma, 2018-01-01, , 8&lt;BR /&gt;5, Sara, 2018-01-01, 2018-06-01, 8&lt;BR /&gt;6, Donald, 2018-01-01, , 8&lt;BR /&gt;7, Louise, 2018-01-01, , 8&lt;BR /&gt;8, Roland, 2018-01-01, 2018-10-01, 8&lt;BR /&gt;9, Thomas, 2018-01-01, , 8&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;MasterCalendar:&lt;BR /&gt;Load&lt;BR /&gt;Date,&lt;BR /&gt;Month,&lt;BR /&gt;Year,&lt;BR /&gt;etc...&lt;BR /&gt;From calendar;&lt;BR /&gt;&lt;BR /&gt;IntervalMatch(Date)&lt;BR /&gt;LOAD Hired_date, End_date&lt;BR /&gt;Resident Staff;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Apr 2019 14:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1566494#M441786</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-04-08T14:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Handling staff in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1566693#M441792</link>
      <description>&lt;P&gt;Sorry for not pointing that out, i DO have a master calender. I see I was a bit unclear (it was very clear in my head &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://community.qlik.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; ).&lt;BR /&gt;What I need help with is the set analysis to show number of employees at a certain month taken account for when they start and end their employmeent.&lt;BR /&gt;Somthing like this (I know its wrong but just to show you want I need);&lt;/P&gt;&lt;PRE&gt;Count({&amp;lt;%Date&amp;lt;=End_date + %Date&amp;gt;=Start_date&amp;gt;} distinct ID)&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Apr 2019 05:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1566693#M441792</guid>
      <dc:creator>t_hylander</dc:creator>
      <dc:date>2019-04-09T05:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Handling staff in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1566765#M441797</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;count( {&amp;lt; &lt;BR /&gt;   Hired_date = {"&amp;lt;=$(=min(%Date))"} , &lt;BR /&gt;   End_date= {"&amp;gt;=$(=max(%Date))", ''}  &lt;BR /&gt;   &amp;gt;} distinct Id)&lt;/PRE&gt;&lt;P&gt;This expression will work on the script below given that you have a data island calendar with a date field called &lt;EM&gt;&lt;STRONG&gt;%Date&lt;/STRONG&gt;&lt;/EM&gt;. The tricky part here is to fetch the empty End_date. You can not use this if the value is NULL(). I would as in my earlier example set the value to today or tomorrow for the field used in the set.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Staff_tmp:
LOAD * INLINE [
Id, Name, Hired_date, End_date, Value
1, Arnold, 2018-01-01, , 8
2, Steven, 2018-01-01, , 8
3, Cloude, 2018-01-01, , 8
4, Emma, 2018-01-01, , 8
5, Sara, 2018-01-01, 2018-06-01, 8
6, Donald, 2018-01-01, , 8
7, Louise, 2018-01-01, , 8
8, Roland, 2018-01-01, 2018-10-01, 8
9, Thomas, 2018-01-01, , 8
];&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 272px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9747iB1C50BA5B643C405/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 08:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1566765#M441797</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-04-09T08:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Handling staff in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1567621#M441838</link>
      <description>Close enough, it should be max(%Date) on Hired_date as well.&lt;BR /&gt;I also skipped Null-values and used Today() as suggested!&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 10 Apr 2019 12:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1567621#M441838</guid>
      <dc:creator>t_hylander</dc:creator>
      <dc:date>2019-04-10T12:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Handling staff in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1567675#M441842</link>
      <description>I'm happy to help.&lt;BR /&gt;&lt;BR /&gt;If you use min(Date) you get people that where hired for the whole selected period. If you use max(Date) you get people hired the max date in your selection. When selecting a single date the outcome will be identical.&lt;BR /&gt;&lt;BR /&gt;The combination max(Date) for Hired_date and min(Date) for End_date will return any staff hired inside the selected period.</description>
      <pubDate>Wed, 10 Apr 2019 13:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1567675#M441842</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-04-10T13:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Handling staff in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1567731#M441847</link>
      <description>&lt;P&gt;Another approach, using a generated Fact table and the aggr() function.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 14:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-staff-in-Qlikview/m-p/1567731#M441847</guid>
      <dc:creator>MichaelRobertshaw</dc:creator>
      <dc:date>2019-04-10T14:40:34Z</dc:date>
    </item>
  </channel>
</rss>

