<?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: Line Chart not Including Unused Dates with a Linked Master Calendar in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1764102#M59082</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/130322"&gt;@jashinskyjm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide sample data / file&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 16:28:51 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2020-11-24T16:28:51Z</dc:date>
    <item>
      <title>Line Chart not Including Unused Dates with a Linked Master Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1764080#M59078</link>
      <description>&lt;P&gt;This is my first post, so please just let me know if I need to edit anything. I've searched the forums and haven't been able to find an answer to this problem.&lt;/P&gt;&lt;P&gt;I believe I have linked a Master Calendar with my actual data with a matching MMM-YYYY 'Date' variable. I've included a picture here to hopefully show what I have setup. The Master Calendar has every instance of my date range from earliest to latest.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jashinskyjm_0-1606232607471.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44737i7DB8B57F3177095E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jashinskyjm_0-1606232607471.png" alt="jashinskyjm_0-1606232607471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I set up a Line Chart with my data filtered to a limited sample, it does not include all dates from my Master Calendar. Instead it only includes the dates for which there are data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jashinskyjm_1-1606232756289.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44738i95BA72BA300EA18F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jashinskyjm_1-1606232756289.png" alt="jashinskyjm_1-1606232756289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone by chance know how I can ensure the line chart includes the date instances where no values are present (i.e., every date included in my Master Calendar)? I'm happy to provide more information if it would be helpful. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1764080#M59078</guid>
      <dc:creator>jashinskyjm</dc:creator>
      <dc:date>2024-11-16T01:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart not Including Unused Dates with a Linked Master Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1764091#M59079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/130322"&gt;@jashinskyjm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on ur screenshot, subset ratio is 100%. so in that case, hope all dates available in ur datas, might be, the values are zero. Try like below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1606234502007.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44741iF3BA6F6C8CBD6558/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1606234502007.png" alt="MayilVahanan_0-1606234502007.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 16:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1764091#M59079</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-11-24T16:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart not Including Unused Dates with a Linked Master Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1764100#M59081</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the quick response!&lt;/P&gt;&lt;P&gt;I checked that setting you mentioned and found that I did have it checked.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jashinskyjm_0-1606235092243.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44743i6B1CE21C25B2EE83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jashinskyjm_0-1606235092243.png" alt="jashinskyjm_0-1606235092243.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 16:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1764100#M59081</guid>
      <dc:creator>jashinskyjm</dc:creator>
      <dc:date>2020-11-24T16:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart not Including Unused Dates with a Linked Master Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1764102#M59082</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/130322"&gt;@jashinskyjm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide sample data / file&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 16:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1764102#M59082</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2020-11-24T16:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart not Including Unused Dates with a Linked Master Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1764107#M59084</link>
      <description>&lt;P&gt;Thank you again&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I've attached sample data and below are parts of my script. I've been trying to chart counts of "drug_overdose" by month-year.&lt;/P&gt;&lt;P&gt;I also noticed something else. I wanted to chart the data by month-year, but if I chart if by day-month-year I can see that it is properly including all the dates because all dates. The spikes on the first of the month is because all of the date values were assigned for the first of their month.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44744i7B1762AE8F7ED33F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example.PNG" alt="Example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, if I use my Filter Panes to narrow down the results, it stops including all of the dates and only includes those that have values. Could there be a setting in my Filter Panes that is causing the problem?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example 2.PNG" style="width: 883px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44745iC1F8D2853F882A58/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example 2.PNG" alt="Example 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;[year_incidence],&lt;BR /&gt;[month_incidence],&lt;BR /&gt;[Race],&lt;BR /&gt;[drug_overdose],&lt;BR /&gt;date(MakeDate([year_incidence], [month_incidence], 1),'MMM-YYYY') AS Date&lt;BR /&gt;FROM [lib://AttachedFiles/EMS Data (11-23-20).csv]&lt;BR /&gt;(txt, codepage is 28591, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Master Calendar Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;QuartersMap:&lt;BR /&gt;MAPPING LOAD&lt;BR /&gt;rowno() as Month,&lt;BR /&gt;'Q' &amp;amp; Ceil (rowno()/3) as Quarter&lt;BR /&gt;AUTOGENERATE (12);&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;Load&lt;BR /&gt;min(Date) as minDate,&lt;BR /&gt;max(Date) as maxDate&lt;BR /&gt;Resident EMSData;&lt;/P&gt;&lt;P&gt;Let varMinDate = Num(Peek('minDate', 0, 'Temp'));&lt;BR /&gt;Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&lt;BR /&gt;DROP Table Temp;&lt;/P&gt;&lt;P&gt;TempCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt;$(varMinDate) + Iterno()-1 As Num,&lt;BR /&gt;Date($(varMinDate) + IterNo() - 1) as TempDate&lt;BR /&gt;AutoGenerate 1 While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;BR /&gt;Load&lt;BR /&gt;TempDate as Date,&lt;BR /&gt;week(TempDate) As Week,&lt;BR /&gt;Year(TempDate) As Year,&lt;BR /&gt;Month(TempDate) As Month,&lt;BR /&gt;Day(TempDate) As Day,&lt;BR /&gt;YeartoDate(TempDate)*-1 as CurYTDFlag,&lt;BR /&gt;YeartoDate(TempDate,-1)*-1 as LastYTDFlag,&lt;BR /&gt;inyear(TempDate, Monthstart($(varMaxDate)),-1) as RC12,&lt;BR /&gt;date(monthstart(TempDate), 'MMM-YYYY') as MonthYear,&lt;BR /&gt;ApplyMap('QuartersMap', month(TempDate), Null()) as Quarter,&lt;BR /&gt;Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear,&lt;BR /&gt;WeekDay(TempDate) as WeekDay&lt;BR /&gt;Resident TempCalendar&lt;BR /&gt;Order By TempDate ASC;&lt;/P&gt;&lt;P&gt;Drop Table TempCalendar;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 17:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1764107#M59084</guid>
      <dc:creator>jashinskyjm</dc:creator>
      <dc:date>2020-11-24T17:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart not Including Unused Dates with a Linked Master Calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1765308#M59199</link>
      <description>&lt;P&gt;I just wanted to close the loop on this. I ended up being able to find the answer on this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1420724" target="_blank"&gt;Re: QlikSense Dimension: show all values like QlikView?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Turns out when I used selections with the data it also was applying them to the dates in the Master Calendar. So, if I said only chart "females" the Master Calendar wasn't being used because it did not have values for "female." The answer was to apply a set analysis to force Qlik to include the values from the Master Calendar.&lt;/P&gt;&lt;P&gt;Thank you for your help working through this&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935" target="_blank"&gt;@MayilVahanan.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 16:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Chart-not-Including-Unused-Dates-with-a-Linked-Master/m-p/1765308#M59199</guid>
      <dc:creator>jashinskyjm</dc:creator>
      <dc:date>2020-11-30T16:45:01Z</dc:date>
    </item>
  </channel>
</rss>

