<?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: Dates and Calendar in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486693#M101422</link>
    <description>&lt;P&gt;Pleache check this link:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/App-Development/How-could-I-have-three-differets-field-with-specific-information/m-p/2485664/highlight/true#M101303" target="_blank"&gt;https://community.qlik.com/t5/App-Development/How-could-I-have-three-differets-field-with-specific-information/m-p/2485664/highlight/true#M101303&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There is similar issue / need with code example.&lt;/P&gt;</description>
    <pubDate>Sat, 12 Oct 2024 13:10:34 GMT</pubDate>
    <dc:creator>zar</dc:creator>
    <dc:date>2024-10-12T13:10:34Z</dc:date>
    <item>
      <title>Dates and Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486577#M101409</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;
&lt;P&gt;I am trying to make these two dates fields return the YEAR in which an employee was active? what is the best way to handle the task?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nicouek_0-1728653765596.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172808i2BE4C039FCC9C698/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nicouek_0-1728653765596.png" alt="nicouek_0-1728653765596.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;SORTED DESC BELOW&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nicouek_1-1728653894244.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172809iAEE38C1098D43060/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nicouek_1-1728653894244.png" alt="nicouek_1-1728653894244.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 13:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486577#M101409</guid>
      <dc:creator>nicouek</dc:creator>
      <dc:date>2024-10-11T13:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dates and Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486589#M101411</link>
      <description>&lt;P&gt;I believe what you're looking for in your results is the year range, so for example "1999-2002".&lt;/P&gt;
&lt;P&gt;The simple way would be:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Year(StartDate) &amp;amp; ' - ' &amp;amp; Year (EndDate)&amp;nbsp; This would return a text field.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You may want to treat 1/1/2099 as "Present" so then you'd write&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Year(StartDate) &amp;amp; ' - ' &amp;amp; if (EndDate = '1/1/2099', 'Present', Year (EndDate))&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you want to sort by StartDate you could use the Dual function&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Dual(Year(StartDate) &amp;amp; ' - ' &amp;amp; if (EndDate = '1/1/2099', 'Present', Year (EndDate)), StartDate)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 11 Oct 2024 14:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486589#M101411</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2024-10-11T14:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dates and Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486609#M101413</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121989"&gt;@nicouek&lt;/a&gt;&amp;nbsp; What is the expected output? How would you line to represent active employee with this data?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 15:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486609#M101413</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-11T15:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dates and Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486616#M101414</link>
      <description>&lt;P&gt;The expected output is this, I am searching for a way to make StartDate and EndDate return a single year every time the Emp_id is present. Below you can see Emp_921 has the same StartDate and expected EndDate however each year has it's own count.&amp;nbsp;This was achieved with Interval Match on MASTER Calendar which returns (e.g. 2023 = 315 Emp_id counts)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nicouek_0-1728666325559.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172818i84F4FFD4E98E0E62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nicouek_0-1728666325559.png" alt="nicouek_0-1728666325559.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The issue is, the client has a different solution they trust generating a staff count for them (e.g. 2023 = 296 Emp_id counts) and that's what the client wants to see in qlik. I have been able to get that number in qlik sense (296) by, filtering on StartDate column &amp;lt;=1/1/2023 and filter EndDate column &amp;gt;=1/1/2023. Now I want to find out if I can categorize Startdate and EndDate to apply this filtration in the engine when I select the Year I want to analyze. + I have to find a way to categorize them into their years first.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;I hope I made sense...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 12:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486616#M101414</guid>
      <dc:creator>nicouek</dc:creator>
      <dc:date>2024-10-12T12:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dates and Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486627#M101415</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121989"&gt;@nicouek&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Load *,
     year(YearStart(StartDate,IterNo()-1)) as Year
FROM Table
while YearStart(StartDate,IterNo()-1) &amp;lt;= YearStart(EndDate);&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Oct 2024 19:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486627#M101415</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-11T19:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dates and Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486689#M101420</link>
      <description>&lt;P&gt;If you have a master calendar containing both a date field and a year field then you could interval match you employees to that calendar.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Load your master calendar, containing `date` and `year`.&lt;/P&gt;
&lt;P&gt;2. Load your employee table containing `StartDate` and `EndDate`.&lt;/P&gt;
&lt;P&gt;3. Create an intervalMatch table using this script.&lt;/P&gt;
&lt;P&gt;IntervalMatchTable:&lt;/P&gt;
&lt;P&gt;IntervalMatch(date)&lt;/P&gt;
&lt;P&gt;LOAD StartDate, EndDate RESIDENT EmployeeTable;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will give you a synthetic key, but that is OK. (ImtervalMatch is in general the only scenario where I keep synthetic keys in my data models) . If you don't like that, the do a community search on how to remove synthetic keys.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 06:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486689#M101420</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2024-10-12T06:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dates and Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486693#M101422</link>
      <description>&lt;P&gt;Pleache check this link:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/App-Development/How-could-I-have-three-differets-field-with-specific-information/m-p/2485664/highlight/true#M101303" target="_blank"&gt;https://community.qlik.com/t5/App-Development/How-could-I-have-three-differets-field-with-specific-information/m-p/2485664/highlight/true#M101303&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There is similar issue / need with code example.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 13:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2486693#M101422</guid>
      <dc:creator>zar</dc:creator>
      <dc:date>2024-10-12T13:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dates and Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2488002#M101611</link>
      <description>&lt;P&gt;Thank you for the input however, I already you this method, but the number being returned is not what the client.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 23:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dates-and-Calendar/m-p/2488002#M101611</guid>
      <dc:creator>nicouek</dc:creator>
      <dc:date>2024-10-18T23:12:56Z</dc:date>
    </item>
  </channel>
</rss>

