<?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: Multiple measures on Chart using start and end date and master calendar in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980563#M14213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, you have a warehouse too. Your first post didn't mention it. Are there any more parts of your data model that share keys with the parts you posted in your original post?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2015 10:50:48 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-12-29T10:50:48Z</dc:date>
    <item>
      <title>Multiple measures on Chart using start and end date and master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980558#M14208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am fairly new to qlik sense and currently working on a chart to display different measures (rented qty, owned qty, repaired qty) on a line chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to add Owned qty and repaired qty and use the master calendar for the date. However, I have loaded another table from our databases which has the rentstartdate, rentenddate along with the item. How would I join the date parameters with the existing master calendar? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what the current script looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InventoryLoad:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;IDate,&lt;/P&gt;&lt;P&gt;ItemKey,&lt;/P&gt;&lt;P&gt;Ownedqty,&lt;/P&gt;&lt;P&gt;Repairedqty&lt;/P&gt;&lt;P&gt;FROM inventory&lt;/P&gt;&lt;P&gt;order by IDate asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LoadRented:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;ItemKey,&lt;/P&gt;&lt;P&gt;rentedqty,&lt;/P&gt;&lt;P&gt;rentstart,&lt;/P&gt;&lt;P&gt;rentend&lt;/P&gt;&lt;P&gt;FROM orderrents;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QuartersMap:&amp;nbsp; &lt;/P&gt;&lt;P&gt;MAPPING LOAD&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;rowno() as Month,&amp;nbsp; &lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil (rowno()/3) as Quarter&amp;nbsp; &lt;/P&gt;&lt;P&gt;AUTOGENERATE (12);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Temp:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load&amp;nbsp; &lt;/P&gt;&lt;P&gt;min(IDate) as minDate,&amp;nbsp; &lt;/P&gt;&lt;P&gt;max(IDate) as maxDate&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident LoadInventory;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let varMinDate = Num(Peek('minDate', 0, 'Temp'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;DROP Table Temp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;TempCalendar:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;$(varMinDate) + Iterno()-1 As Num,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Date($(varMinDate) + IterNo() - 1) as TempDate&amp;nbsp; &lt;/P&gt;&lt;P&gt;AutoGenerate 1 While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;MasterCalendar:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; TempDate AS IDate,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; week(TempDate) As Week,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(TempDate) As Year,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(TempDate) As Month,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Day(TempDate) As Day,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; ApplyMap('QuartersMap', month(TempDate), Null()) as Quarter,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Week(weekstart(TempDate)) &amp;amp; '-' &amp;amp; WeekYear(TempDate) as WeekYear,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; WeekDay(TempDate) as WeekDay&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident TempCalendar&amp;nbsp; &lt;/P&gt;&lt;P&gt;Order By TempDate ASC;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Drop Table TempCalendar;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I also map the rentstart and rentend to the mastercalendar?&lt;/P&gt;&lt;P&gt;Would that be done via simple join?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 17:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980558#M14208</guid>
      <dc:creator />
      <dc:date>2015-12-23T17:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple measures on Chart using start and end date and master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980559#M14209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the IntervalMatch function to match the intervals defined by rentstart and rentend with the IDate values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RentIntervals:&lt;/P&gt;&lt;P&gt;IntervalMatch(IDate,ItemKey)&lt;/P&gt;&lt;P&gt;LOAD rentstart, rentent,ItemKey&lt;/P&gt;&lt;P&gt;Resident LoadRented;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 17:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980559#M14209</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-23T17:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple measures on Chart using start and end date and master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980560#M14210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. But this displays the following error:&lt;/P&gt;&lt;P class="selectable" style="margin: 0 0 0 5px;"&gt;$Syn 1 = ItemKey+IDate&lt;/P&gt;&lt;P class="message warning" style="font-family: monospace; color: #d48700; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;Circular reference:&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="message warning" style="font-family: monospace; color: #d48700; font-size: 13px;"&gt;&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;One or more loops have been detected in your database structure. Loops may cause ambiguous results and should therefore be avoided. Loop(s) will automatically be cut by setting one or more tables as loosely coupled. Use Loosen Table script statement to explicitly declare loosely coupled tables.&lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt; &lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;This would not exist across 3 tables: LoadInventory, LoadRented, and RentIntervals. &lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;Should I drop LoadRented? &lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt; &lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt; &lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 20:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980560#M14210</guid>
      <dc:creator />
      <dc:date>2015-12-23T20:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple measures on Chart using start and end date and master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980561#M14211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's a good solution. But first add the fields from LoadRented to RentIntervals:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RentIntervals:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IntervalMatch(IDate,ItemKey)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD rentstart, rentent,ItemKey&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident LoadRented;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Left Join (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RentIntervals&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load * Resident LoadRented;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop Table LoadRented;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you don't care about the rentstart and rentend fields you could also join RentIntervals to InventoryLoad and then drop RentIntervals and the rentstart and rentend fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Dec 2015 17:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980561#M14211</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-26T17:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple measures on Chart using start and end date and master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980562#M14212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seemed to work partially. &lt;/P&gt;&lt;P&gt;I am still getting the synthetic keys: &lt;/P&gt;&lt;P class="selectable" style="margin: 0 0 0 5px;"&gt;Lines fetched: 1&lt;/P&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;$Syn 1 = warehouse+InventoryKey+IDate&lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt; &lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;I now have the RentalIntervals table and Load Inventory which is causing this issue. Is there a way that I can keep them as distinct tables but get rid of the synthetic table error?&lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt; &lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt; &lt;/DIV&gt;&lt;DIV class="selectable" style="margin: 0 0 0 5px;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 07:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980562#M14212</guid>
      <dc:creator />
      <dc:date>2015-12-29T07:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple measures on Chart using start and end date and master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980563#M14213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, you have a warehouse too. Your first post didn't mention it. Are there any more parts of your data model that share keys with the parts you posted in your original post?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2015 10:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980563#M14213</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-29T10:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple measures on Chart using start and end date and master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980564#M14214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have made some changes and this is what the current data model looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Gather Warehouses */&lt;/P&gt;&lt;P&gt;Warehouses:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;RTRIM(warehouse) warehouse,&lt;/P&gt;&lt;P&gt;warehouseid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM Rent.dbo.warehouse&lt;/P&gt;&lt;P&gt;where inactive&amp;lt;&amp;gt;'T';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Gather Active Icodes */&lt;/P&gt;&lt;P&gt;Inventory:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;InventoryKey,&lt;/P&gt;&lt;P&gt;ICode as masterno,&lt;/P&gt;&lt;P&gt;Description,&lt;/P&gt;&lt;P&gt;Department,&lt;/P&gt;&lt;P&gt;Category,&lt;/P&gt;&lt;P&gt;SubCategory&lt;/P&gt;&lt;P&gt;FROM RentDW.dbo.Inventory&lt;/P&gt;&lt;P&gt;Where InactiveFlag&amp;lt;&amp;gt;'T'&lt;/P&gt;&lt;P&gt;AND AvailFor='RENT'&lt;/P&gt;&lt;P&gt;AND Len(ICode)=7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;DailyInventory:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;warehouse,&lt;/P&gt;&lt;P&gt;ICode as masterno,&lt;/P&gt;&lt;P&gt;TransactionDate,&lt;/P&gt;&lt;P&gt;TransactionType as Type,&lt;/P&gt;&lt;P&gt;ChangeDescription,&lt;/P&gt;&lt;P&gt;AdditionQty as AddedQty,&lt;/P&gt;&lt;P&gt;SubtractionQty as SubtractedQty,&lt;/P&gt;&lt;P&gt;ExtendedAdditionPrice as AddedValue,&lt;/P&gt;&lt;P&gt;ExtendedSubtractionPrice as SubtractedValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM RentDW.dbo.InventoryChange; */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LoadDailyOwnedRepairInventory:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;I.InventoryKey,&lt;/P&gt;&lt;P&gt;d.Date as IDate, &lt;/P&gt;&lt;P&gt;d.Ownedqty,&lt;/P&gt;&lt;P&gt;d.RepairQty,&lt;/P&gt;&lt;P&gt;RTRIM(warehouse) warehouse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From RentDW.dbo.DailyInventoryStatus d, Inventory I, Time t&lt;/P&gt;&lt;P&gt;WHERE d.Date = t.Date&lt;/P&gt;&lt;P&gt;and I.inventoryKey = d.InventoryKey&lt;/P&gt;&lt;P&gt;Order By IDate ASC ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;Load warehouse Resident Warehouses;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMaxDates:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Min(IDate) as MinDate,&lt;/P&gt;&lt;P&gt;Max(IDate) as MaxDate&lt;/P&gt;&lt;P&gt;Resident LoadDailyOwnedRepairInventory;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let varMinDate = Num(Peek('MinDate', 0, 'MinMaxDates'));&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let varMaxDate = Num(Peek('MaxDate', 0, 'MinMaxDates')); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LoadRented:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;ISNULL(ISNULL(outreceivedatetime, estrentfrom),billperiodstart) as outdatetime, &lt;/P&gt;&lt;P&gt;ISNULL(ISNULL(inreturndatetime, estrentto),billperiodend) indatetime,&lt;/P&gt;&lt;P&gt;masterid as InventoryKey,&lt;/P&gt;&lt;P&gt;qty as RentedQty,&lt;/P&gt;&lt;P&gt;d.warehouse as warehouse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM Rent.dbo.Ordertran o, Rent.dbo.masteritem m , Rent.dbo.orderview d&lt;/P&gt;&lt;P&gt;WHERE m.masteritemid = o.masteritemid and m.orderid = o.orderid and d.orderid = o.orderid&lt;/P&gt;&lt;P&gt;AND (inreturndatetime IS NULL OR inreturndatetime &amp;gt; $(varMinDate))&lt;/P&gt;&lt;P&gt;AND outreceivedatetime &amp;lt; $(varMaxDate)&lt;/P&gt;&lt;P&gt;AND d.dealid &amp;lt;&amp;gt; ''&lt;/P&gt;&lt;P&gt;AND o.rentalitemid ! = ''&lt;/P&gt;&lt;P&gt;AND d.status IN ('ACTIVE', 'CLOSED', 'COMPLETE', 'CONFIRMED');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;Load warehouse Resident Warehouses;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RentIntervals:&lt;/P&gt;&lt;P&gt;IntervalMatch(IDate,InventoryKey)&lt;/P&gt;&lt;P&gt;LOAD outdatetime, indatetime,InventoryKey&lt;/P&gt;&lt;P&gt;Resident LoadRented;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (RentIntervals)&lt;/P&gt;&lt;P&gt;Load * Resident LoadRented;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table LoadRented;&lt;/P&gt;&lt;P&gt;Drop Table MinMaxDates;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unsure how I can concatenate the table that provides the daily inventory with the table that provides the rented qty. Is it possible that I can keep them as separate tables and still get rid of the synthetic keys. Additionally, there would be additional data that would be added to this: i.e. 2 additional datasets, one for subrentqty, invoicedqty similar to LoadRented.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 17:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-measures-on-Chart-using-start-and-end-date-and-master/m-p/980564#M14214</guid>
      <dc:creator />
      <dc:date>2016-01-03T17:39:02Z</dc:date>
    </item>
  </channel>
</rss>

