<?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: Create 1=1 relation with calendar to show non-utilization? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1965460#M79567</link>
    <description>&lt;P&gt;Using the rental example, you could do something like:&lt;/P&gt;
&lt;P class="p1"&gt;Day&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;MonthEnd&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Month&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)) - &lt;/SPAN&gt;Count&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;RentedDay&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;But that would only work if you had at least one entry for the month.&amp;nbsp; It sounds like you may have cases where you have no usage for the month.&amp;nbsp; So continuing with your approach of joining every vehicle to every date, and adding a flag for used days:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Let&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; vStartDate = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(2022,5,31);&lt;BR /&gt;Calendar:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;*,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Month&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;Date&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; Month&lt;SPAN class="s2"&gt;&lt;BR /&gt;; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;I&gt;$(#vStartDate)&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; + &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;RecNo&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;()) &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; Date&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;AutoGenerate&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(2022,8,31) - &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;I&gt;$(#vStartDate)&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Join&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(Calendar)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; * &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Inline&lt;/SPAN&gt; [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VehicleId&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;B&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;]&lt;SPAN class="s2"&gt;&lt;BR /&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Left&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;Join&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(Calendar)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; *, 1 &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; Used &lt;SPAN class="s1"&gt;Inline&lt;/SPAN&gt; [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VehicleId, Date&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, 6/1/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, 6/2/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, 6/3/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, 7/1/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, 7/15/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;B, 7/7/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;B, 7/8/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;]&lt;/FONT&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rwunderlich_0-1659739019350.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86128i1D8A6733226B1006/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rwunderlich_0-1659739019350.png" alt="rwunderlich_0-1659739019350.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 22:38:24 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2022-08-05T22:38:24Z</dc:date>
    <item>
      <title>Create 1=1 relation with calendar to show non-utilization?</title>
      <link>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1965253#M79553</link>
      <description>&lt;P&gt;I'm creating a vehicle utilization dashboard, but most importantly, need to show non-utilization. The data source only contains the dates that someone signed in as using a vehicle, so currently the only "non-utilization" I can show is if someone signed in, but then didn't input mileage (as it'd be 0). I have a calendar table on another database (diff server) and thought I could create a 1=1 relationship so every vehicle would have 365 entries....and then all the "null values" would be my new "non-utilization" count. I've accomplished this before in SQL if they're on the same server, but I honestly have no idea how to do this in QLIK.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I loaded the vehicle usage data and then loaded the calendar separately. I named both date columns the same knowing QLIK will make a connection, but it doesn't actually give me the desired result. I am new to QLIK, so not super savvy with QLIK Script or how to accomplish this. Any help is appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 14:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1965253#M79553</guid>
      <dc:creator>drew61199</dc:creator>
      <dc:date>2022-08-05T14:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create 1=1 relation with calendar to show non-utilization?</title>
      <link>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1965270#M79555</link>
      <description>&lt;P&gt;Take a look at this downloadable example for one approach to this problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="4pur7-0-0"&gt;Qlikview Cookbook: Count Days In A Transaction Using Intervalmatch &lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://qlikviewcookbook.com/recipes/download-info/count-days-in-a-transaction-using-intervalmatch/" target="_blank"&gt;https://qlikviewcookbook.com/recipes/download-info/count-days-in-a-transaction-using-intervalmatch/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 14:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1965270#M79555</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-08-05T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create 1=1 relation with calendar to show non-utilization?</title>
      <link>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1965369#M79561</link>
      <description>&lt;P&gt;Forgive my ignorance, but i'm not sure that will work. Based on that example and others I found for interval match, it will match for items that exist. Essentially I need to "create" or "fill in" the blanks for the periods that don't exist.&lt;/P&gt;
&lt;P&gt;For example, for the month of June if I only used a vehicle 6/1 - 6/14 (which would be 14 individual entries b/c it's always daily) AND entered mileage for all 14 days, my current query and calcs would show "0 unused days"...b/c there are 14 days of data and all have mileage. I need to show that there are truly 16 days of no utilization b/c no entries exist.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 17:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1965369#M79561</guid>
      <dc:creator>drew61199</dc:creator>
      <dc:date>2022-08-05T17:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create 1=1 relation with calendar to show non-utilization?</title>
      <link>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1965460#M79567</link>
      <description>&lt;P&gt;Using the rental example, you could do something like:&lt;/P&gt;
&lt;P class="p1"&gt;Day&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;MonthEnd&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Month&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)) - &lt;/SPAN&gt;Count&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;RentedDay&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;But that would only work if you had at least one entry for the month.&amp;nbsp; It sounds like you may have cases where you have no usage for the month.&amp;nbsp; So continuing with your approach of joining every vehicle to every date, and adding a flag for used days:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Let&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; vStartDate = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(2022,5,31);&lt;BR /&gt;Calendar:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;*,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Month&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;Date&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; Month&lt;SPAN class="s2"&gt;&lt;BR /&gt;; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;I&gt;$(#vStartDate)&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; + &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;RecNo&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;()) &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; Date&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;AutoGenerate&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(2022,8,31) - &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;I&gt;$(#vStartDate)&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Join&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(Calendar)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; * &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Inline&lt;/SPAN&gt; [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VehicleId&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;B&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;C&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;]&lt;SPAN class="s2"&gt;&lt;BR /&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Left&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;Join&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(Calendar)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; *, 1 &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; Used &lt;SPAN class="s1"&gt;Inline&lt;/SPAN&gt; [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VehicleId, Date&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, 6/1/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, 6/2/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, 6/3/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, 7/1/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A, 7/15/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;B, 7/7/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;B, 7/8/2022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;]&lt;/FONT&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rwunderlich_0-1659739019350.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/86128i1D8A6733226B1006/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rwunderlich_0-1659739019350.png" alt="rwunderlich_0-1659739019350.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 22:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1965460#M79567</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-08-05T22:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create 1=1 relation with calendar to show non-utilization?</title>
      <link>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1965474#M79568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you have work with SQL, then you are OK with Joins. So Lets first get 365 (or 366 in case of leap year) rows for each vehicle, having every date of the year. To do this, use following steps:&lt;/P&gt;
&lt;P&gt;1. Create a table `Vehicles` with each unique vehicle ID&lt;/P&gt;
&lt;P&gt;2. Create a table with dates for the whole year ( Using Autogenerate and Makedate )&lt;/P&gt;
&lt;P&gt;3. Do a cartesian join of these two tables to get dates for each vehicle.&lt;/P&gt;
&lt;P&gt;After that doing another left join with your transactions tabkle should give you what you want.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2022 08:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1965474#M79568</guid>
      <dc:creator>vidyutverma</dc:creator>
      <dc:date>2022-08-06T08:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create 1=1 relation with calendar to show non-utilization?</title>
      <link>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1966175#M79644</link>
      <description>&lt;P&gt;So after digging around some more, I found a table with vehicle listing on the same server as the calendar table I was going to reference (I prefer this as it marks our holidays, fiscal week, year, etc opposed to using a date generator or other form). Anyway, this would have built a perfect 1=1 and then I could pull in utilization data from the 2nd server, but I get an error in QLIK with the below:&lt;/P&gt;
&lt;P&gt;WITH DATES as (&lt;BR /&gt;SELECT &lt;BR /&gt;cal_FY as FY,&lt;BR /&gt;cal_wk as Week,&lt;BR /&gt;cal_dow as DOW,&lt;BR /&gt;CAST(cal_date as DATE) as Cal_Date&lt;BR /&gt;&lt;BR /&gt;FROM database.calendar&lt;BR /&gt;where cal_fy &amp;gt; 2021&lt;BR /&gt;and cal_month = 7&lt;BR /&gt;and cal_dow &amp;lt;&amp;gt; 'sun'&lt;BR /&gt;and cal_hol is null&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;SELECT &lt;BR /&gt;vehicle_id,&lt;BR /&gt;DATES.Cal_Date&lt;BR /&gt;FROM database.vehicles&lt;BR /&gt;FULL OUTER JOIN DATES ON 1=1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The following error occurred:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Connector reply error: Executing non-SELECT queries is disabled. Please contact your system administrator to enable it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may be limited to our system admin and I can tell you now I don't have the clout to get it changed. So is my only other option to create a temp table, load dates, create a temp table, load vehicles, then do a JOIN on the two tables in QLIK Script for my 1=1? Would I then tie in the utilization from a 3rd temp table? I'm not super familiar with QLIK, so would it look something like this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[DATA]:&lt;BR /&gt;LOAD&lt;BR /&gt;vehicle_id as vehicle&lt;/P&gt;
&lt;P&gt;Resident xVEHICLE;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;JOIN (DATA)&lt;BR /&gt;LOAD&lt;/P&gt;
&lt;P&gt;Cal_Date as Date&lt;/P&gt;
&lt;P&gt;Resident xDATES;&lt;BR /&gt;Drop Table xDATES;&lt;/P&gt;
&lt;P&gt;Drop Table xVEHICLE;&lt;/P&gt;
&lt;P&gt;[UTILIZATION]:&lt;BR /&gt;Load&lt;BR /&gt;vehicle, &lt;BR /&gt;Date&lt;BR /&gt;Resident DATA;&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN&lt;BR /&gt;Load&lt;BR /&gt;vehiclenumber as vehicle,&lt;BR /&gt;beginodometer,&lt;BR /&gt;endodometer,&lt;BR /&gt;eventenddate as Date,&lt;BR /&gt;location&lt;/P&gt;
&lt;P&gt;Resident xUTILIZATION;&lt;BR /&gt;Drop Table DATA;&lt;BR /&gt;Drop Table xUTILIZATION;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 20:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1966175#M79644</guid>
      <dc:creator>drew61199</dc:creator>
      <dc:date>2022-08-08T20:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create 1=1 relation with calendar to show non-utilization?</title>
      <link>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1966187#M79645</link>
      <description>&lt;P&gt;Yes, In Qlik, With Joins, you work at a time only on two tables, not more. So if you need another temp table, do use it. Try, and see what happens. You are going in right direction That is the best way&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;. Just be careful about the joins so that you don`t get a cartesian join when you don`t want it, so be careful about the fieldnames being used for join, and verify twice that these exist in both the tables.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 21:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1966187#M79645</guid>
      <dc:creator>vidyutverma</dc:creator>
      <dc:date>2022-08-08T21:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create 1=1 relation with calendar to show non-utilization?</title>
      <link>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1966628#M79672</link>
      <description>&lt;P&gt;The input to a Qlik LOAD can be an SQL statement as a "preceding load", and SQL statements can also stand alone in your Qlik script. So I would think your Qlik script would look like this. I don't think you need any temp tables. I didn't see a SQL statement for your utilization data so I just put a placeholder at the end.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Calendar:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SQL SELECT&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cal_FY as FY,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cal_wk as Week,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cal_dow as DOW,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CAST(cal_date as DATE) as Cal_Date&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM database.calendar&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;where cal_fy &amp;gt; 2021&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;and cal_month = 7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;and cal_dow &amp;lt;&amp;gt; 'sun'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;and cal_hol is null&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Join(Calendar)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SQL SELECT&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vehicle_id&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM database.vehicles&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Left Join(Calendar)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD *,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; 1 as Used&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SQL Select foo from your utilization table;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 15:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-1-1-relation-with-calendar-to-show-non-utilization/m-p/1966628#M79672</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-08-09T15:15:30Z</dc:date>
    </item>
  </channel>
</rss>

