<?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: Master Calendar and filtered in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1805962#M65543</link>
    <description>&lt;P&gt;this may help:&amp;nbsp;&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394" target="_blank"&gt;Generating Missing Data In QlikView - Qlik Community - 1491394&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 19:03:39 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2021-05-06T19:03:39Z</dc:date>
    <item>
      <title>Master Calendar and filtered</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1805918#M65538</link>
      <description>&lt;P&gt;Hi to everybody&lt;/P&gt;&lt;P&gt;I'm working with Qlik Saas edition and I've some doubt on how create a trend graph with Master Calendar.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I've a fact table where each row is dedicated to a specific activity with all its related information; one of the information available is the "Concluded Date" of the activity. Since I'd like to work with this information I've created a Master Calendar in order to have all the dates in the working period available;&lt;/P&gt;&lt;P&gt;2) This is the standard code of Master Calendar I'm using:&lt;/P&gt;&lt;P&gt;MinMaxTemp:&lt;BR /&gt;LOAD&lt;BR /&gt;Min(FieldValue('Concluded Date', RecNo())) as MinDate,&amp;nbsp;&lt;BR /&gt;Max(FieldValue('Concluded Date', RecNo())) as MaxDate&lt;BR /&gt;AUTOGENERATE FieldValueCount('Concluded Date');&lt;/P&gt;&lt;P&gt;LET vToday = NUM(PEEK('MaxDate',0,'MinMaxTemp'));&lt;/P&gt;&lt;P&gt;MasterCalendar_Temp:&lt;BR /&gt;LOAD&lt;BR /&gt;Date(MinDate + IterNo() - 1) as [Concluded Date] //Create the OrderDate field&lt;BR /&gt;RESIDENT MinMaxTemp&lt;BR /&gt;WHILE MinDate + IterNo() - 1 &amp;lt;= MaxDate;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DROP TABLE MinMaxTemp;&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt;[Concluded Date],&lt;BR /&gt;Week([Concluded Date]) as Week,&lt;BR /&gt;Year([Concluded Date]) as Year,&lt;BR /&gt;Month([Concluded Date]) as Month,&lt;BR /&gt;Day([Concluded Date]) as Day,&lt;BR /&gt;Date(MonthStart([Concluded Date]),'MM-YYYY') as MonthYear,&lt;BR /&gt;Date(MonthStart([Concluded Date]),'MMM-YYYY') as MonthLYear,&lt;BR /&gt;RESIDENT MasterCalendar_Temp;&lt;/P&gt;&lt;P&gt;drop table MasterCalendar_Temp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;3) Starting from this I'd like to create a line chart with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;on X axis the months/year (i.e. [MonthYear] from Master Calendar)&lt;/LI&gt;&lt;LI&gt;on Y axis a count of event with some selections applied by default; in particular the formula is the following:&amp;nbsp; Count({&amp;lt;[Category]={'CatA','CatB','CatC'},[Activity]={'Emergency'}&amp;gt;} [WS_N])&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, my issue is the following; doing like this and, eventually, applying some further selection from the filters, it could happen that on some months the count is equal to 0 (that particular subset of data is not existing for that specific month).&lt;/P&gt;&lt;P&gt;In this case those specific months are not shown anymore (see below) in the graph (for example 05-2020 is missing):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="first.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/54452i8FAA57A4B9104A5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="first.JPG" alt="first.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I've tried to add to the measure: + sum({1} 0); it worked partially; now the graph seems good (0 values in missing months are shown) however i cannot filter anymore by Month/year (if I tried to select only 3 months, i can still see all of them on the x axis, but only the selected ones have the count value).&lt;/P&gt;&lt;P&gt;Is there a way to allow the filter of the X axis and, at the same time, have the 0 values on the dates with missing results?&lt;/P&gt;&lt;P&gt;Thanks!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 16:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1805918#M65538</guid>
      <dc:creator>EugenioAccornero</dc:creator>
      <dc:date>2021-05-06T16:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar and filtered</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1805957#M65541</link>
      <description>&lt;P&gt;one quick and dirty way is concatenate 0 measures into your fact table.&amp;nbsp; use all possible combinations for your dimensions.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 18:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1805957#M65541</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-05-06T18:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar and filtered</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1805958#M65542</link>
      <description>&lt;P&gt;of course if you are using average, then its a different/complicated approach as you may need to be selective in what you concatenate (just the missing dates)&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 18:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1805958#M65542</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-05-06T18:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar and filtered</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1805962#M65543</link>
      <description>&lt;P&gt;this may help:&amp;nbsp;&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394" target="_blank"&gt;Generating Missing Data In QlikView - Qlik Community - 1491394&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 19:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1805962#M65543</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-05-06T19:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar and filtered</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1806158#M65562</link>
      <description>&lt;P&gt;I understand the concept, however this will work also if I'm counting the number of row? I can see the point if I'm summing some values, but with the count I will include also the added rows... or not?&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 12:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1806158#M65562</guid>
      <dc:creator>EugenioAccornero</dc:creator>
      <dc:date>2021-05-07T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calendar and filtered</title>
      <link>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1806164#M65565</link>
      <description>&lt;P&gt;I think I've solved by applying this formula:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count({&amp;lt;[Category]={'CatA','CatB','CatC'},[Activity]={'Emergency'}&amp;gt;} [WS_N])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(sum({1 &amp;lt;MonthYear=$::MonthYear&amp;gt;} 0);&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this way the Date is included in the filter and the selection is applied to the X axis.&lt;/P&gt;&lt;P&gt;Is it correct?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 12:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Master-Calendar-and-filtered/m-p/1806164#M65565</guid>
      <dc:creator>EugenioAccornero</dc:creator>
      <dc:date>2021-05-07T12:48:04Z</dc:date>
    </item>
  </channel>
</rss>

