<?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: Show zero measures in a graph in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443176#M97477</link>
    <description>&lt;P&gt;Yes, they should go in the link table. There also a few youtube videos that explain this in more detail.&lt;/P&gt;</description>
    <pubDate>Sat, 20 Apr 2024 13:02:00 GMT</pubDate>
    <dc:creator>igoralcantara</dc:creator>
    <dc:date>2024-04-20T13:02:00Z</dc:date>
    <item>
      <title>Show zero measures in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2442964#M97462</link>
      <description>&lt;P&gt;(Apologies, this was posted earlier but was my post was so full of flaws, I removed it).&lt;/P&gt;
&lt;P&gt;I am trying to show a graph of tickets raised over a periiod of time.&amp;nbsp; In my data I have zero 'Open' tickets in October and as a result &lt;STRONG&gt;October&lt;/STRONG&gt; does not show on my graph.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Markbhai_0-1713531709414.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164375i096546A132BAFBAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Markbhai_0-1713531709414.png" alt="Markbhai_0-1713531709414.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have tried a 'Master Calendar' which works until a filter is applied.&amp;nbsp; -&lt;/P&gt;
&lt;P&gt;I have also read about adding + sum({1}0) to my measure.&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;[Status]={'Open'}&amp;gt;}id) + sum({1}0)&lt;/P&gt;
&lt;P&gt;and setting the Addons -&amp;gt; Data Handling -&amp;gt; Include zero values&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Markbhai_1-1713531893301.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164376iAA9DDDBAA143CE03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Markbhai_1-1713531893301.png" alt="Markbhai_1-1713531893301.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 13:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2442964#M97462</guid>
      <dc:creator>Markbhai</dc:creator>
      <dc:date>2024-04-19T13:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero measures in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443004#M97463</link>
      <description>&lt;P&gt;The correct approach is the Master Calendar. In addition, check if the Add-Ons property "Include zero values" is active.&lt;/P&gt;
&lt;P&gt;Additionally, can you give more details of how the master calendar was created and what sort of selection breaks it?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443004#M97463</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-04-19T14:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero measures in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443012#M97464</link>
      <description>&lt;P&gt;Thank You for your help&amp;nbsp;I am using the following script:&lt;/P&gt;
&lt;P&gt;QuartersMap:&lt;/P&gt;
&lt;P&gt;MAPPING LOAD&lt;/P&gt;
&lt;P&gt;rowno() as Month,&lt;/P&gt;
&lt;P&gt;'Q' &amp;amp; Ceil (rowno()/3) as Quarter&lt;/P&gt;
&lt;P&gt;AUTOGENERATE (12);&lt;/P&gt;
&lt;P&gt;Temp:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;min([Reported Date]) as minDate,&lt;/P&gt;
&lt;P&gt;max([Reported Date]) as maxDate&lt;/P&gt;
&lt;P&gt;Resident foi;&lt;/P&gt;
&lt;P&gt;Let varMinDate = Num(Peek('minDate', 0, 'Temp'));&lt;/P&gt;
&lt;P&gt;Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&lt;/P&gt;
&lt;P&gt;DROP Table Temp;&lt;/P&gt;
&lt;P&gt;TempCalendar:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;$(varMinDate) + Iterno()-1 As Num,&lt;/P&gt;
&lt;P&gt;Date($(varMinDate) + IterNo() - 1) as TempDate&lt;/P&gt;
&lt;P&gt;AutoGenerate 1 While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);&lt;/P&gt;
&lt;P&gt;MasterCalendar:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;TempDate AS [Reported Date],&lt;/P&gt;
&lt;P&gt;week(TempDate) As Week,&lt;/P&gt;
&lt;P&gt;Year(TempDate) As Year,&lt;/P&gt;
&lt;P&gt;Month(TempDate) As Month,&lt;/P&gt;
&lt;P&gt;Day(TempDate) As Day,&lt;/P&gt;
&lt;P&gt;YeartoDate(TempDate)*-1 as CurYTDFlag,&lt;/P&gt;
&lt;P&gt;YeartoDate(TempDate,-1)*-1 as LastYTDFlag,&lt;/P&gt;
&lt;P&gt;inyear(TempDate, Monthstart($(varMaxDate)),-1) as RC12,&lt;/P&gt;
&lt;P&gt;date(monthstart(TempDate), 'MMM-YYYY') as MonthYear,&lt;/P&gt;
&lt;P&gt;ApplyMap('QuartersMap', month(TempDate), Null()) as Quarter,&lt;/P&gt;
&lt;P&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear,&lt;/P&gt;
&lt;P&gt;WeekDay(TempDate) as WeekDay&lt;/P&gt;
&lt;P&gt;Resident TempCalendar&lt;/P&gt;
&lt;P&gt;Order By TempDate ASC;&lt;/P&gt;
&lt;P&gt;Drop Table TempCalendar;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will show the table correctly:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Markbhai_0-1713536820446.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164382iD81B0553F629B9CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Markbhai_0-1713536820446.png" alt="Markbhai_0-1713536820446.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However when I click on any other graph the resulting graph does not show blank months.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Markbhai_1-1713536919697.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164383iF82B83EB1B20EEE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Markbhai_1-1713536919697.png" alt="Markbhai_1-1713536919697.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any help grefully appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443012#M97464</guid>
      <dc:creator>Markbhai</dc:creator>
      <dc:date>2024-04-19T14:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero measures in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443017#M97465</link>
      <description>&lt;P&gt;oh, I see what you're saying. First, check if the master calendar links correctly to the rest of the data model. Do you link by [Reported Date]? Maybe reporter date in your "Fact" table has timestamp on it and on the calendar only the date. Even if does not show in the table preview, this might be true. Using floor on both fields and then reformatting back as a date make work.&lt;/P&gt;
&lt;P&gt;So, in the Data Model Viewer, check for both Subset ration. If they add up to 100% or close, that could be the case.&lt;BR /&gt;&lt;BR /&gt;If your link works, you might need a link table. Let me know if that is the case and I can give you an example on how to create one.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:48:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443017#M97465</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-04-19T14:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero measures in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443019#M97467</link>
      <description>&lt;P&gt;Just adding an example of what I say to convert to just date. Don't use just the date function. It will not change the data type in the field, it will simply mask it. Do something like this:&lt;BR /&gt;&lt;BR /&gt;Date(Floor([Reported Date]), 'MM-DD-YYYY') As [Reported Date]&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443019#M97467</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-04-19T14:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero measures in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443076#M97470</link>
      <description>&lt;P&gt;Thanks Igor.&lt;/P&gt;
&lt;P&gt;Yes I am linking by Reported Date.&amp;nbsp;&amp;nbsp;I thought we might have been on to something there as the dates were showing as with time in the foi table and without in the Master Calendar table.&amp;nbsp; Now I have them both showing as date:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Markbhai_0-1713544477874.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164392i4B324ADC6E70F969/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Markbhai_0-1713544477874.png" alt="Markbhai_0-1713544477874.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Markbhai_1-1713544499094.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164393i7AF9A9A6577F4C70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Markbhai_1-1713544499094.png" alt="Markbhai_1-1713544499094.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In terms of the Data Model we have this:&lt;/P&gt;
&lt;P&gt;FOI&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Markbhai_4-1713544905760.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164396i9C2BA0FB9F2B3D8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Markbhai_4-1713544905760.png" alt="Markbhai_4-1713544905760.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Master Calendar&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Markbhai_5-1713544956105.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164397i026ED83C143698FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Markbhai_5-1713544956105.png" alt="Markbhai_5-1713544956105.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks once again.&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443076#M97470</guid>
      <dc:creator>Markbhai</dc:creator>
      <dc:date>2024-04-19T16:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero measures in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443079#M97471</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Okay, let's try doing a Link Table then. This is an example, adapt to what you need.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;1. Create the Link Table Script: Let's start by creating a Link Table script that includes all unique dates or months from the MasterCalendar table. We'll use the `CROSSTABLE` function to achieve this. Here's the script:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LinkTable:
CROSSTABLE (MonthType, MonthValue)
LOAD
Date as MonthValue,
'Date' as MonthType
RESIDENT MasterCalendar;

Concatenate (LinkTable)
LOAD
Month as MonthValue,
'Month' as MonthType
RESIDENT MasterCalendar;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;This script creates a table with two fields: `MonthType` and `MonthValue`. The `MonthType` field specifies whether the value is a specific date or a month, and the `MonthValue` field contains the corresponding date or month value.&lt;/P&gt;
&lt;P&gt;2. Link the Link Table to MasterCalendar and FactTable: Link the Link Table to both the MasterCalendar and the FactTable using appropriate key fields. Here's an example of how you can do this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LinkTable:
LOAD
MonthType,
MonthValue
RESIDENT LinkTable;

LEFT JOIN (LinkTable)
LOAD
Date,
Month,
Year
RESIDENT MasterCalendar;

LEFT JOIN (LinkTable)
LOAD
Date,
FactField1,
FactField2,
... // Add other fields from FactTable as needed
RESIDENT FactTable;
&lt;/LI-CODE&gt;
&lt;P&gt;Replace `FactField1`, `FactField2`, etc., with the actual fields you have in your FactTable that you want to link with the MasterCalendar.&lt;/P&gt;
&lt;P&gt;3. Reload the Script: Once you've added the above script to your Qlik Sense app, reload the script to create the Link Table and establish the associations.&lt;/P&gt;
&lt;P&gt;Let me know if that helps you.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443079#M97471</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-04-19T16:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero measures in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443131#M97473</link>
      <description>&lt;P&gt;Thanks Igor&lt;/P&gt;
&lt;P&gt;I havent been able to have a go at this yet on account of me finishing work, but by FactField1, FactField2 etc do you mean the fields which I am likely to select on the dashboard which will filter my table? eg [Status] for Open/Closed tickets etc?&lt;/P&gt;
&lt;P&gt;Thanks Mark.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 23:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443131#M97473</guid>
      <dc:creator>Markbhai</dc:creator>
      <dc:date>2024-04-19T23:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero measures in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443176#M97477</link>
      <description>&lt;P&gt;Yes, they should go in the link table. There also a few youtube videos that explain this in more detail.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2024 13:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443176#M97477</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-04-20T13:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Show zero measures in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443308#M97486</link>
      <description>&lt;P&gt;Thanks Igor,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works and I have marked it as the solution.&lt;/P&gt;
&lt;P&gt;I dont think though that it will be practical for my needs as the resulting table is 9m records long (and I have only added a few fields).&amp;nbsp; If I were to expand this across the data base I suspect it would end up being too resource hungry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess I will just have to accept that I can show dates with zero values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your help.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 15:22:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-zero-measures-in-a-graph/m-p/2443308#M97486</guid>
      <dc:creator>Markbhai</dc:creator>
      <dc:date>2024-04-21T15:22:44Z</dc:date>
    </item>
  </channel>
</rss>

