<?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: Assist with script please in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1752493#M719685</link>
    <description>&lt;P&gt;Using Exists() in the way you mentioned is exactly one of the ways to very easily select those customers that do not have any orders for any of the time periods loaded in your data model.&lt;/P&gt;&lt;P&gt;If that covers your use case, go ahead and use that, it shouldn't be an expensive table to load.&lt;/P&gt;&lt;P&gt;However, this alone will not solve the issue of displaying "20200906" in your tables and charts if there is no data for them, and that date will be missing from the UI.&lt;/P&gt;&lt;P&gt;You can then insert data in the data source (if possible), for at least one customer for that date with value 0&lt;/P&gt;&lt;P&gt;Depending on the objects, you can set a continuous axis (e.g.: &lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Bar_Chart.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Bar_Chart.htm&lt;/A&gt;&amp;nbsp;section "Dimension Axis") and display null values or all values (same link but section "Chart Properties: Dimensions") and the datapoint for those values, assuming the dimension is from the Calendar table, will display 0.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"Show All Values
Enable this check box to show all the dimension values regardless of the selection. As the expression value is zero for excluded dimension values, the option Suppress Zero-Values in the Presentation page must be deselected for Show All Values to work. Show All Values does not apply if you use an expression as dimension."&lt;/LI-CODE&gt;&lt;P&gt;This might not work in every chart and in every case, so you will still have to generate that data if you still want to display the missing "20200906" and all columns to "0".&lt;/P&gt;&lt;P&gt;In your case, assuming the field REQ_DATE is in the calendar table, which will return all dates between the minimum and the maximum from the table "Data_Temp", regardless whether they have any data, it should work.&lt;/P&gt;&lt;P&gt;But in the app you attached, since you are LEFT JOINing the MasterCalendar table to the Data_Temp, those missing dates will still be missing (they are not on the LEFT part of the JOIN, the JOIN will drop them).&lt;/P&gt;&lt;P&gt;Leave the full calendar table associated with the fact table by using the REQ_DATE or a numeric equivalent (e.g.: first date in your data model = 1, second date = 2, etc.).&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14114"&gt;@Brett_Bleess&lt;/a&gt;&amp;nbsp;for the shout!&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2020 15:21:42 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2020-10-14T15:21:42Z</dc:date>
    <item>
      <title>Assist with script please</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1745085#M719681</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;Please find attached.&lt;/P&gt;&lt;P&gt;so my model contains Table volumes, per day and Hour.&lt;/P&gt;&lt;P&gt;I need to visually identify, where there is data missing. So I would need to join to some Master table that has the whole range of dates that my data contains, plus all time ranges in hour (from 00 to 23), to my fact table (Data can be missing for a WHOLE day, or only for a few hours per day)&lt;/P&gt;&lt;P&gt;I have attempted to do that join in my model, but I've hit a mindblock. You will see that table "HF WOWH - LBSBKM" is missing data for the 6th,13th and 17 th.&lt;/P&gt;&lt;P&gt;I dont know how to do the join that will help me identify these null fields from the join - my logic tells me I need to join my fact table to the Calendar, and then test for nulls...&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1745085#M719681</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with script please</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1745109#M719682</link>
      <description>When null values displayed on charts or objects come from missing data (e.g.: in your case, let's say there were no transactions whatsoever on the 6th, no lines in the data source have a date of 6th), you will need to "generate" that data.&lt;BR /&gt;That can definitely happen by joining to the calendar table, however, depending on the size of your data model, that could be a bit of an overkill, and leave a massive table with more fields than those you actually need.&lt;BR /&gt;However, I strongly recommend you take a look at Henric Cronström's posts here:&lt;BR /&gt;- &lt;A href="https://community.qlik.com/t5/QlikView-Documents/NULL-handling-in-QlikView/ta-p/1484472" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/NULL-handling-in-QlikView/ta-p/1484472&lt;/A&gt;&lt;BR /&gt;- &lt;A href="https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394&lt;/A&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1745109#M719682</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2020-09-18T14:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with script please</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1745184#M719683</link>
      <description>&lt;P&gt;hi Miguel, Thank you for your response.&lt;/P&gt;&lt;P&gt;I have read through Henric's info and I think using the below could work (using the combination of Date and Hour in both tables)? As you said - table volumes might be an issue - also because I would need to add Table_Name to that %Key field as well...what do you think?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Identifying NULLS in your data through Script.PNG" style="width: 597px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40823iE177EBCBC2E48662/image-size/large?v=v2&amp;amp;px=999" role="button" title="Identifying NULLS in your data through Script.PNG" alt="Identifying NULLS in your data through Script.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 15:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1745184#M719683</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2020-09-18T15:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with script please</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1752474#M719684</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22381"&gt;@Miguel_Angel_Baeyens&lt;/a&gt;&amp;nbsp; just shouting out, as it appears notifications are not working well yet in Community, poster had one final scenario they wanted to run by you, and give you are a much better developer than am I, figured I would let you chime in on your thoughts.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 14:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1752474#M719684</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-10-14T14:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with script please</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1752493#M719685</link>
      <description>&lt;P&gt;Using Exists() in the way you mentioned is exactly one of the ways to very easily select those customers that do not have any orders for any of the time periods loaded in your data model.&lt;/P&gt;&lt;P&gt;If that covers your use case, go ahead and use that, it shouldn't be an expensive table to load.&lt;/P&gt;&lt;P&gt;However, this alone will not solve the issue of displaying "20200906" in your tables and charts if there is no data for them, and that date will be missing from the UI.&lt;/P&gt;&lt;P&gt;You can then insert data in the data source (if possible), for at least one customer for that date with value 0&lt;/P&gt;&lt;P&gt;Depending on the objects, you can set a continuous axis (e.g.: &lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Bar_Chart.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Bar_Chart.htm&lt;/A&gt;&amp;nbsp;section "Dimension Axis") and display null values or all values (same link but section "Chart Properties: Dimensions") and the datapoint for those values, assuming the dimension is from the Calendar table, will display 0.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"Show All Values
Enable this check box to show all the dimension values regardless of the selection. As the expression value is zero for excluded dimension values, the option Suppress Zero-Values in the Presentation page must be deselected for Show All Values to work. Show All Values does not apply if you use an expression as dimension."&lt;/LI-CODE&gt;&lt;P&gt;This might not work in every chart and in every case, so you will still have to generate that data if you still want to display the missing "20200906" and all columns to "0".&lt;/P&gt;&lt;P&gt;In your case, assuming the field REQ_DATE is in the calendar table, which will return all dates between the minimum and the maximum from the table "Data_Temp", regardless whether they have any data, it should work.&lt;/P&gt;&lt;P&gt;But in the app you attached, since you are LEFT JOINing the MasterCalendar table to the Data_Temp, those missing dates will still be missing (they are not on the LEFT part of the JOIN, the JOIN will drop them).&lt;/P&gt;&lt;P&gt;Leave the full calendar table associated with the fact table by using the REQ_DATE or a numeric equivalent (e.g.: first date in your data model = 1, second date = 2, etc.).&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14114"&gt;@Brett_Bleess&lt;/a&gt;&amp;nbsp;for the shout!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 15:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1752493#M719685</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2020-10-14T15:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with script please</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1752514#M719686</link>
      <description>&lt;P&gt;Hi Brett,&amp;nbsp;&lt;/P&gt;&lt;P&gt;A very clever colleague of mine helped me to do this in script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm not sure if I should mark this as solved...it has been solved, but not via here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 16:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1752514#M719686</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2020-10-14T16:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with script please</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1752521#M719687</link>
      <description>&lt;P&gt;Thank you Miguel, much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 16:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1752521#M719687</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2020-10-14T16:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Assist with script please</title>
      <link>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1752527#M719688</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/83915"&gt;@QFanatic&lt;/a&gt;&amp;nbsp;What you can do is unmark Miguel's post as the solution, and post what you did instead and then mark that in the case of you having done something differently, but it is up to you.&amp;nbsp; Generally giving posters a 'Like' for the assistance is nice in these cases too even though they did not actually solve things for you.&amp;nbsp; Hopefully makes sense.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assist-with-script-please/m-p/1752527#M719688</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-10-14T17:04:30Z</dc:date>
    </item>
  </channel>
</rss>

