<?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: Summing with intervalmatch in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215397#M622184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BLOCKMINS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load DISTINCT interval(&lt;SPAN style="color: #ff0000;"&gt;Floor(&lt;/SPAN&gt;frac(BlkMinOfDayRAW)&lt;SPAN style="color: #ff0000;"&gt;, 1/1440)&lt;/SPAN&gt;,'h:mm') as BlkMinOfDay,ServLine,Dt,BlockLoc,StartTime as BlkStart ,EndTime as BlkEnd Resident BLOCKTIME;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INNER JOIN (BLOCKMINS)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IntervalMatch(BlkMinOfDay,ServLine,Dt,BlockLoc)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD StartTime as BlkStart, EndTime as BlkEnd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident BLOCKCAL;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 15:20:56 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-15T15:20:56Z</dc:date>
    <item>
      <title>Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215395#M622182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build a display that shows the utilization of each surgical block in an operating room.&lt;/P&gt;&lt;P&gt;To do so I have to create three main tables:&lt;/P&gt;&lt;P&gt;A case details table that has the case times and locations&lt;/P&gt;&lt;P&gt;A master calendar table&lt;/P&gt;&lt;P&gt;A block calendar table that contains possible dates for each block based on the day of the week and week number of the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then need to use a combination of all the above tables to be able to see the count of cases going at any minute of a given day versus the amount of rooms available for that specific block at that specific time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to see something similar to this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MINOFDAY.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/156391_MINOFDAY.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I have as seen in the pic above is I am not able to capture distinct minute of day (notice 8:21 and 8:28) nor am I able to figure out the logic to capture the number of cases going at that time of day.&lt;/P&gt;&lt;P&gt;I have attached a few dummy cases to my logic in the QVW below.&lt;/P&gt;&lt;P&gt;Please let me know if you have any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 14:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215395#M622182</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-03-15T14:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215396#M622183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pretty sure I've got a theatre utilisation dashboard I created before which I can share&lt;/P&gt;&lt;P&gt;I'll check my server when I have a moment (later this evening)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 14:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215396#M622183</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-15T14:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215397#M622184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BLOCKMINS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load DISTINCT interval(&lt;SPAN style="color: #ff0000;"&gt;Floor(&lt;/SPAN&gt;frac(BlkMinOfDayRAW)&lt;SPAN style="color: #ff0000;"&gt;, 1/1440)&lt;/SPAN&gt;,'h:mm') as BlkMinOfDay,ServLine,Dt,BlockLoc,StartTime as BlkStart ,EndTime as BlkEnd Resident BLOCKTIME;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INNER JOIN (BLOCKMINS)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IntervalMatch(BlkMinOfDay,ServLine,Dt,BlockLoc)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD StartTime as BlkStart, EndTime as BlkEnd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident BLOCKCAL;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215397#M622184</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T15:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215398#M622185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the advice. While this did solve the duplicate minute of day issue, now it appears the intervalmatch is off somehow:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MINOFDAY.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/156395_MINOFDAY.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8:27 should have a 2, but displays one. My expression for the Available column is =count(BlkStart) which comes from the BLOCKMINS load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215398#M622185</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-03-15T15:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215399#M622186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or may be round&lt;/P&gt;&lt;P&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 style="font-style: inherit; font-family: inherit;"&gt;BLOCKMINS:&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 style="font-style: inherit; font-family: inherit;"&gt;NoConcatenate&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 style="font-style: inherit; font-family: inherit;"&gt;Load DISTINCT interval(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Round(&lt;/SPAN&gt;frac(BlkMinOfDayRAW)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, 1/1440)&lt;/SPAN&gt;,'h:mm') as BlkMinOfDay,ServLine,Dt,BlockLoc,StartTime as BlkStart ,EndTime as BlkEnd Resident BLOCKTIME;&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 style="font-style: inherit; font-family: inherit;"&gt;INNER JOIN (BLOCKMINS)&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 style="font-style: inherit; font-family: inherit;"&gt;IntervalMatch(BlkMinOfDay,ServLine,Dt,BlockLoc)&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 style="font-style: inherit; font-family: inherit;"&gt;LOAD StartTime as BlkStart, EndTime as BlkEnd&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 style="font-style: inherit; font-family: inherit;"&gt;Resident BLOCKCAL;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215399#M622186</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T15:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215400#M622187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Round instead of Floor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215400#M622187</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T15:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215401#M622188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome! That looks like it should do the trick for the Available column, any advice for the Going column?&lt;/P&gt;&lt;P&gt;I thought the INMINS load statement would work but I can't figure it out:&lt;/P&gt;&lt;P&gt;INMINS:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD DISTINCT interval(frac(MinOfDay),'h:mm') as BlkMinOfDayTEST,Dt,ServLine,Loc, count(distinct LOG_ID) as Cnt&lt;/P&gt;&lt;P&gt;RESIDENT CASESFIN&lt;/P&gt;&lt;P&gt;GROUP BY interval(frac(MinOfDay),'h:mm'),Dt,ServLine,Loc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking my expression for Going should be =if(&lt;SPAN style="font-size: 13.3333px;"&gt;BlkMinOfDayTEST&lt;/SPAN&gt; = BlkMinOfDay,Cnt,0) but it does not return any results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215401#M622188</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-03-15T15:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215402#M622189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what you are counting within Going? Would you be able to elaborate a little?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215402#M622189</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T15:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215403#M622190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to be able to see the amount of LOG_IDs whose InTm and OutTm fall in the range of the BlkMinOfDay.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;LOG_ID 123 has an InTm of 08:20 and an OutTm of 14:07&lt;/P&gt;&lt;P&gt;LOG_ID 345 has an InTm of 10:33 and an OutTm of 11:18&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the table with the BlkMinOfDay I would expect to see from 8:20-10:33 2 Available and 1 going, but then from 10:33-11:18 2 Available and 2 Going; then back to 2 Available and 1 going at 11:19..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215403#M622190</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-03-15T15:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215404#M622191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 17:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215404#M622191</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T17:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215405#M622192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, thanks again Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 18:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215405#M622192</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-03-15T18:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Summing with intervalmatch</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215406#M622193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny gave me a great framework to work with, however I would still like to see what you have built.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 18:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-with-intervalmatch/m-p/1215406#M622193</guid>
      <dc:creator>andrewmo</dc:creator>
      <dc:date>2017-03-15T18:17:47Z</dc:date>
    </item>
  </channel>
</rss>

