<?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 Master Calendar dublicate date period in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Master-Calendar-dublicate-date-period/m-p/2478982#M100546</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a calendar table and a table where I get working hours. I need to show working hours hourly. I calculated the periods but when I connect the calendar table it multiplies for each working minute. Can you help me with the table?&lt;/P&gt;
&lt;P&gt;My request here is to show only the periods in a day and null the periods that do not exist. Because I also need to show the time periods when I do not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;LET vMinDate = Num(MakeDate(2024,4,1));&lt;/P&gt;
&lt;P&gt;LET vMaxDate = Num(Today());&lt;/P&gt;
&lt;P&gt;LET vDays = vMaxDate - vMinDate + 2;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Calendar:&lt;BR /&gt;load &lt;BR /&gt;Date(Floor(TimeStamp)) AS Date,&lt;/P&gt;
&lt;P&gt;Dual(Time(Floor(Frac(TimeStamp),'00:60:00'),'hh:mm')&amp;amp;'-'&amp;amp;Time(Floor(Frac(TimeStamp),'00:60:00')+'00:60:00','hh:mm'),Floor(Frac(TimeStamp),'00:60:00')) as PeriyodNew;&lt;/P&gt;
&lt;P&gt;LOAD Date(Floor(TimeStamp)) AS Date,&lt;/P&gt;
&lt;P&gt;TimeStamp,&lt;/P&gt;
&lt;P&gt;Hour(TimeStamp) AS Hour,&lt;/P&gt;
&lt;P&gt;Minute(TimeStamp) AS Minute;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Timestamp($(vMinDate) + (RecNo() - 1)/1440) as TimeStamp&lt;/P&gt;
&lt;P&gt;AUTOGENERATE 1440 * $(vDays);&lt;/P&gt;
&lt;P&gt;Table :&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;date(floor(StartTime),'YYYY-MM-DD') as StartTime,&lt;BR /&gt;date(floor(EndTime),'YYYY-MM-DD') as EndTime, &lt;BR /&gt;EndTime as EndTimeOrj,&lt;BR /&gt;date(floor(EndTime)) as Date,&lt;BR /&gt;StartTime as StartTimeorj,&lt;BR /&gt;&lt;BR /&gt;FROM [lib://.....qvd] (qvd);&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krmvacar_0-1725048107053.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171147iDD2A7BEFB8DF62F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="krmvacar_0-1725048107053.png" alt="krmvacar_0-1725048107053.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 20:09:35 GMT</pubDate>
    <dc:creator>krmvacar</dc:creator>
    <dc:date>2024-08-30T20:09:35Z</dc:date>
    <item>
      <title>Master Calendar dublicate date period</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-dublicate-date-period/m-p/2478982#M100546</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a calendar table and a table where I get working hours. I need to show working hours hourly. I calculated the periods but when I connect the calendar table it multiplies for each working minute. Can you help me with the table?&lt;/P&gt;
&lt;P&gt;My request here is to show only the periods in a day and null the periods that do not exist. Because I also need to show the time periods when I do not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;LET vMinDate = Num(MakeDate(2024,4,1));&lt;/P&gt;
&lt;P&gt;LET vMaxDate = Num(Today());&lt;/P&gt;
&lt;P&gt;LET vDays = vMaxDate - vMinDate + 2;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Calendar:&lt;BR /&gt;load &lt;BR /&gt;Date(Floor(TimeStamp)) AS Date,&lt;/P&gt;
&lt;P&gt;Dual(Time(Floor(Frac(TimeStamp),'00:60:00'),'hh:mm')&amp;amp;'-'&amp;amp;Time(Floor(Frac(TimeStamp),'00:60:00')+'00:60:00','hh:mm'),Floor(Frac(TimeStamp),'00:60:00')) as PeriyodNew;&lt;/P&gt;
&lt;P&gt;LOAD Date(Floor(TimeStamp)) AS Date,&lt;/P&gt;
&lt;P&gt;TimeStamp,&lt;/P&gt;
&lt;P&gt;Hour(TimeStamp) AS Hour,&lt;/P&gt;
&lt;P&gt;Minute(TimeStamp) AS Minute;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Timestamp($(vMinDate) + (RecNo() - 1)/1440) as TimeStamp&lt;/P&gt;
&lt;P&gt;AUTOGENERATE 1440 * $(vDays);&lt;/P&gt;
&lt;P&gt;Table :&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;date(floor(StartTime),'YYYY-MM-DD') as StartTime,&lt;BR /&gt;date(floor(EndTime),'YYYY-MM-DD') as EndTime, &lt;BR /&gt;EndTime as EndTimeOrj,&lt;BR /&gt;date(floor(EndTime)) as Date,&lt;BR /&gt;StartTime as StartTimeorj,&lt;BR /&gt;&lt;BR /&gt;FROM [lib://.....qvd] (qvd);&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krmvacar_0-1725048107053.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171147iDD2A7BEFB8DF62F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="krmvacar_0-1725048107053.png" alt="krmvacar_0-1725048107053.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 20:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-dublicate-date-period/m-p/2478982#M100546</guid>
      <dc:creator>krmvacar</dc:creator>
      <dc:date>2024-08-30T20:09:35Z</dc:date>
    </item>
  </channel>
</rss>

