<?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: Headcount measure using disassociated calendar table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824267#M67652</link>
    <description>&lt;P&gt;Thanks for your response, but it is not easy to share the data as I need to replace the content with fake data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression below is producing non-zero answer, but it just seems to be count of all the people on the database without reference to time dimension.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( today(0)&amp;gt;=Alt(date([Hiring date]), today(0)) and today(0)&amp;lt;=Alt(date([Leave date]), today(0)),count([First name last name]),0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jul 2021 03:34:15 GMT</pubDate>
    <dc:creator>Newbie777</dc:creator>
    <dc:date>2021-07-24T03:34:15Z</dc:date>
    <item>
      <title>Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824149#M67635</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to create headcount measure using the employee table and with the information of hiring date and leaving date and the calendar table which are disassociated with each other to enable dynamic calculation based on the different points in time dimension.&amp;nbsp; I used the following measure hoping to see the HC to be calculated flexibly with respect to different points in time dimension, but the outcome of the calculation is zero.&amp;nbsp; I would appreciate it if anyone can point me in the right direction where I am going wrong with this measure.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Newbie7_0-1627048400316.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59060iFA4F8A74CBE16521/image-size/large?v=v2&amp;amp;px=999" role="button" title="Newbie7_0-1627048400316.png" alt="Newbie7_0-1627048400316.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 13:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824149#M67635</guid>
      <dc:creator>Newbie777</dc:creator>
      <dc:date>2021-07-23T13:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824158#M67636</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/80943"&gt;@Newbie777&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;P&gt;=if( max(Total MonthYear) &amp;gt;= [Hiring date] and&amp;nbsp;max(Total MonthYear) &amp;lt;= [Leaving date], count(..))&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 14:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824158#M67636</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-07-23T14:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824172#M67640</link>
      <description>&lt;P&gt;Thanks for your response, but I am getting the zero as the answer.&amp;nbsp; I guess it could be due to the fact that there is no MonthYear dimension in my data model.&amp;nbsp; I tweaked it a bit, and tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( max(Total [Month Year])&amp;gt;=Alt(date([Hiring date]), today(0)) and max(Total [Month Year])&amp;lt;=Alt(date([Leave date]), today(0)),count([First name last name]),0)&lt;/P&gt;&lt;P&gt;but it doesn't produce non-zero answer either.&amp;nbsp; I'd greatly appreciate it if you could let me know what I am doing wrongly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 16:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824172#M67640</guid>
      <dc:creator>Newbie777</dc:creator>
      <dc:date>2021-07-23T16:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824243#M67648</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/80943"&gt;@Newbie777&lt;/a&gt;&amp;nbsp; Do you have sample data? Without looking at your data it will be difficult to tell what is wrong&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 20:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824243#M67648</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-07-23T20:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824267#M67652</link>
      <description>&lt;P&gt;Thanks for your response, but it is not easy to share the data as I need to replace the content with fake data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression below is producing non-zero answer, but it just seems to be count of all the people on the database without reference to time dimension.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if( today(0)&amp;gt;=Alt(date([Hiring date]), today(0)) and today(0)&amp;lt;=Alt(date([Leave date]), today(0)),count([First name last name]),0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 03:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824267#M67652</guid>
      <dc:creator>Newbie777</dc:creator>
      <dc:date>2021-07-24T03:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824273#M67653</link>
      <description>&lt;P&gt;&lt;U&gt;The calendar table is a table I created to create a relationship between the 3 tables based on dates.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;A href="https://www.omegle.vin/" target="_self"&gt;&lt;FONT color="#333333"&gt;Omegle&lt;/FONT&gt;&lt;/A&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 06:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824273#M67653</guid>
      <dc:creator>Stinnett14</dc:creator>
      <dc:date>2021-07-24T06:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824290#M67657</link>
      <description>&lt;P&gt;Thanks, but the way I thought this would work is not by creating a relationship between calendar table and employee database.&amp;nbsp; If I created relationship with calendar table with either hiring date and leaving date it will not work. So I specifically disassociated the tables, like I would do in PowerPivot model.&amp;nbsp; I am not familiar with Qlik Sense, but I would imagine that it will work in a similar way with Power BI in terms of headcount calculation.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 13:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824290#M67657</guid>
      <dc:creator>Newbie777</dc:creator>
      <dc:date>2021-07-24T13:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824294#M67660</link>
      <description>&lt;P&gt;I couldn't find the reason after spending several hours on this issue.&amp;nbsp; I'd greatly appreciate it if you could let me know why the measure expression below is not working, and just producing 0 as the calculated result for all the time periods.&amp;nbsp; I attach the sample qvf file.&amp;nbsp; I'd greatly appreciate it if you could check the master measure I created named "Headcount".&amp;nbsp; I've kept calendar table and employee table disassociated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Newbie7_0-1627135916712.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59090i4B35BEBEFA549100/image-size/large?v=v2&amp;amp;px=999" role="button" title="Newbie7_0-1627135916712.png" alt="Newbie7_0-1627135916712.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 14:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824294#M67660</guid>
      <dc:creator>Newbie777</dc:creator>
      <dc:date>2021-07-24T14:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824295#M67661</link>
      <description>&lt;P&gt;Here is the qvf file with the sample data.&amp;nbsp; It contains 4 tables but only two are relevant for this measure.&amp;nbsp; I tried to delete the two other irrelevant tables, but I couldn't, sorry.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 14:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824295#M67661</guid>
      <dc:creator>Newbie777</dc:creator>
      <dc:date>2021-07-24T14:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824336#M67675</link>
      <description>&lt;P&gt;Hello Kushal_Chawda,&lt;/P&gt;&lt;P&gt;I'd greatly appreciate it if you could have a look at the qvf file and let me know why I am getting zero as a calculation result.&amp;nbsp; Thank you in advance for your time.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 05:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824336#M67675</guid>
      <dc:creator>Newbie777</dc:creator>
      <dc:date>2021-07-25T05:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824361#M67681</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/80943"&gt;@Newbie777&lt;/a&gt;&amp;nbsp; what is the expected output you need?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 13:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824361#M67681</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-07-25T13:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824366#M67684</link>
      <description>&lt;P&gt;Thanks for your response.&amp;nbsp; I'd like to create a dashboard like below, but at the moment, I am focusing on the table headcount table at the bottom left.&amp;nbsp; I'd like the headcount to be calculated for all the selected years and months in the table flexibly using calendar table as the time dimension.&amp;nbsp; Once I get the measure expression to be working, I guess I can flexibly use it to apply to any visualization template in Qlik Sense, so I am not fixated with that particular table format though.&amp;nbsp; I just want the headcount measure to be working which calculates the headcount at any selected date using after hiring date and before leaving date if expression.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Newbie7_0-1627222168100.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59112iBA6449FD5D06FB1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Newbie7_0-1627222168100.png" alt="Newbie7_0-1627222168100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 14:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824366#M67684</guid>
      <dc:creator>Newbie777</dc:creator>
      <dc:date>2021-07-25T14:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824561#M67709</link>
      <description>&lt;P&gt;Hi Kushal_Chawda,&lt;/P&gt;&lt;P&gt;I'd greatly appreciate if you could let me know where I am going wrong with the formula to get zero result.&amp;nbsp; FYI the calendar table might be mismatching with the date range in the sample data, but in my real data too, even though this is not happening, the formula doesn't work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 15:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1824561#M67709</guid>
      <dc:creator>Newbie777</dc:creator>
      <dc:date>2021-07-26T15:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1825851#M67893</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;Please let me know how to fix the measure expression in my post above to get it working.&amp;nbsp; I haven't been able to resolve this issue yet.&amp;nbsp; Thanks a lot for your time in helping me solve this puzzle.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2021 01:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1825851#M67893</guid>
      <dc:creator>Newbie777</dc:creator>
      <dc:date>2021-07-31T01:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1825870#M67899</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/80943"&gt;@Newbie777&lt;/a&gt;&amp;nbsp; what is your logic to get the headcount?&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2021 14:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1825870#M67899</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-07-31T14:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Headcount measure using disassociated calendar table</title>
      <link>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1825872#M67900</link>
      <description>&lt;P&gt;Hi Kushal_Chawda,&lt;/P&gt;&lt;P&gt;My logic to get the headcount is that at any point in time headcount is the count of number of employees from the employee database who were hired before that selected point in time, and who have not left the company at that selected point in time.&amp;nbsp; By this way, we can get the number of headcount at any point in time in historical records if we maintain employee database properly.&amp;nbsp; I sometimes see headcount example with active (who are employed at one particular point in time) and not active (who have left at that time), but this kind of counting only is able to count employee at a particular point in time, and this is not what I want. I'd like my measure to be able to deal with the headcount counting at any selected point in time from the employee database which contains the information of hiring and leaving dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, I use disassociated calendar table and greater than equal to (&amp;gt;=) hiring date and less than or equal to leaving date.&amp;nbsp; Please let me know if you need any further clarification.&amp;nbsp; I am keen to resolve this issue, but I am just a beginner Qlik Sense user and I don't know how to do this in Qlik Sense, which I am able to in Excel Power Pivot formula...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2021 14:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Headcount-measure-using-disassociated-calendar-table/m-p/1825872#M67900</guid>
      <dc:creator>Newbie777</dc:creator>
      <dc:date>2021-07-31T14:53:17Z</dc:date>
    </item>
  </channel>
</rss>

