<?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 Tables relationship / calendar in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Tables-relationship-calendar/m-p/1597646#M44190</link>
    <description>&lt;P&gt;I'd like to show calendar info as background in a line chart.&lt;/P&gt;&lt;P&gt;I've found this feature is not implemented in QlikSense.&lt;/P&gt;&lt;P&gt;So, I'm using a combo chart&lt;/P&gt;&lt;P&gt;&amp;nbsp;- foreground line in blue is the aggregated data - let's say count(request_id)&lt;/P&gt;&lt;P&gt;&amp;nbsp;- background red bar is the calendar info&lt;/P&gt;&lt;P&gt;It is working as the picture shows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="duda_calendario.png" style="width: 127px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14705iCE26DC513860808D/image-size/large?v=v2&amp;amp;px=999" role="button" title="duda_calendario.png" alt="duda_calendario.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I'm not very sure if I'm joining this info in the right way&lt;/P&gt;&lt;P&gt;TABLE_1 WEB_REQUESTS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - request_id&lt;BR /&gt;&amp;nbsp;&amp;nbsp; - request_date&lt;BR /&gt;&amp;nbsp;&amp;nbsp; - request_ ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;TABLE_2 CALENDAR&lt;/P&gt;&lt;P&gt;&amp;nbsp;- request_date&lt;BR /&gt;&amp;nbsp;- calendar_type_of_day = {'WEEKEND', 'PUBLIC_HOLIDAY', 'REDUCED_WORKING_DAY'}&lt;/P&gt;&lt;P&gt;[autoCalendar]&lt;/P&gt;&lt;P&gt;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;DERIVE FIELDS FROM FIELDS request_date, ...&lt;/P&gt;&lt;P&gt;I used request_date as date for CALENDAR table, in order QlikSense engine to link both informations.&lt;/P&gt;&lt;P&gt;But there are side effects, like&lt;/P&gt;&lt;P&gt;&amp;nbsp;- If a show a table with the calendar info, it's plenty of request_dates having calendar_type_of_day=Null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I've to solve it, excluding these null values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;- And if I select 'WEEKEND' in a selector, the blue line, count(request_id) it stops working like in the next picture&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="duda_calendario_2.png" style="width: 141px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14706iC9BF6ED693BCC3E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="duda_calendario_2.png" alt="duda_calendario_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So I'm not very sure if I'm doing the relationship in the correct way.&lt;/P&gt;&lt;P&gt;I've thought to use ApplyMap to add an extra column to TABLE_1 calendar_type_of_day.&lt;/P&gt;&lt;P&gt;What's the correct way to perform this relationship?&amp;nbsp;&lt;BR /&gt;Is there a better way to use a background color for holidays, weekends, etc?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:32:58 GMT</pubDate>
    <dc:creator>virilo_tejedor</dc:creator>
    <dc:date>2024-11-16T20:32:58Z</dc:date>
    <item>
      <title>Tables relationship / calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Tables-relationship-calendar/m-p/1597646#M44190</link>
      <description>&lt;P&gt;I'd like to show calendar info as background in a line chart.&lt;/P&gt;&lt;P&gt;I've found this feature is not implemented in QlikSense.&lt;/P&gt;&lt;P&gt;So, I'm using a combo chart&lt;/P&gt;&lt;P&gt;&amp;nbsp;- foreground line in blue is the aggregated data - let's say count(request_id)&lt;/P&gt;&lt;P&gt;&amp;nbsp;- background red bar is the calendar info&lt;/P&gt;&lt;P&gt;It is working as the picture shows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="duda_calendario.png" style="width: 127px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14705iCE26DC513860808D/image-size/large?v=v2&amp;amp;px=999" role="button" title="duda_calendario.png" alt="duda_calendario.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I'm not very sure if I'm joining this info in the right way&lt;/P&gt;&lt;P&gt;TABLE_1 WEB_REQUESTS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - request_id&lt;BR /&gt;&amp;nbsp;&amp;nbsp; - request_date&lt;BR /&gt;&amp;nbsp;&amp;nbsp; - request_ ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;TABLE_2 CALENDAR&lt;/P&gt;&lt;P&gt;&amp;nbsp;- request_date&lt;BR /&gt;&amp;nbsp;- calendar_type_of_day = {'WEEKEND', 'PUBLIC_HOLIDAY', 'REDUCED_WORKING_DAY'}&lt;/P&gt;&lt;P&gt;[autoCalendar]&lt;/P&gt;&lt;P&gt;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;DERIVE FIELDS FROM FIELDS request_date, ...&lt;/P&gt;&lt;P&gt;I used request_date as date for CALENDAR table, in order QlikSense engine to link both informations.&lt;/P&gt;&lt;P&gt;But there are side effects, like&lt;/P&gt;&lt;P&gt;&amp;nbsp;- If a show a table with the calendar info, it's plenty of request_dates having calendar_type_of_day=Null.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I've to solve it, excluding these null values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;- And if I select 'WEEKEND' in a selector, the blue line, count(request_id) it stops working like in the next picture&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="duda_calendario_2.png" style="width: 141px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14706iC9BF6ED693BCC3E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="duda_calendario_2.png" alt="duda_calendario_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So I'm not very sure if I'm doing the relationship in the correct way.&lt;/P&gt;&lt;P&gt;I've thought to use ApplyMap to add an extra column to TABLE_1 calendar_type_of_day.&lt;/P&gt;&lt;P&gt;What's the correct way to perform this relationship?&amp;nbsp;&lt;BR /&gt;Is there a better way to use a background color for holidays, weekends, etc?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Tables-relationship-calendar/m-p/1597646#M44190</guid>
      <dc:creator>virilo_tejedor</dc:creator>
      <dc:date>2024-11-16T20:32:58Z</dc:date>
    </item>
  </channel>
</rss>

