<?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: Comparisons in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725586#M670614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So in the table on the right try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Adding the expression '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[DateOutgoing]-[DateIncoming] '&amp;nbsp; and see if it works and returns the right day #'s&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2. If it works, change it to :&amp;nbsp;&amp;nbsp; ' &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(&amp;nbsp; [DateOutgoing]-[DateIncoming] &amp;lt;=5 ,&amp;nbsp;&amp;nbsp; [DateOutgoing]-[DateIncoming] )' and see if that works.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;3. if that works, try disabling any other expression in the chart, it should filter it down has 0 values in expressions (so long as all expression in the chart have zeroes' )&amp;nbsp; are by default auto suppressed.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ps:&amp;nbsp; I'm not sure what context you need the minimum date... that wasn't clear in the first post&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;pps:&amp;nbsp; this is a bit of guesswork. its better to have an example to use . &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2014 17:24:23 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-10-14T17:24:23Z</dc:date>
    <item>
      <title>Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725583#M670611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables linked by a single ID. Messages in the first table are incoming messages. Messages from the second table are outgoing. We have more outgoing messages than incoming. I need to condense my outgoing messages based on what messages are within five days of an incoming message and lose the rest. Then I need to figure out the &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;response time&lt;/EM&gt;&lt;/SPAN&gt; between the closest matched dates. I am fairly new to this program and any advice is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Medcompare.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68892_Medcompare.JPG.jpg" style="width: 620px; height: 102px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 16:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725583#M670611</guid>
      <dc:creator />
      <dc:date>2014-10-14T16:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725584#M670612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use an IF() statement and check the date differential to ensure its less than 5 days apart.&amp;nbsp; Qlik's associative data model will ensure the IDs are always matched&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&amp;nbsp; [DateOutgoing]-[DateIncoming] &amp;lt;=5 ,&amp;nbsp;&amp;nbsp; sum( [DateOutgoing]-[DateIncoming]) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression should figure out the minimum DateOutgoing&amp;nbsp; for each ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;min ( Total&amp;nbsp; &amp;lt;ID &amp;gt;&amp;nbsp; DateOutgoing)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 16:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725584#M670612</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-14T16:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725585#M670613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you use both statements within the outgoing message expression? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 16:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725585#M670613</guid>
      <dc:creator />
      <dc:date>2014-10-14T16:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725586#M670614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So in the table on the right try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Adding the expression '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[DateOutgoing]-[DateIncoming] '&amp;nbsp; and see if it works and returns the right day #'s&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2. If it works, change it to :&amp;nbsp;&amp;nbsp; ' &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(&amp;nbsp; [DateOutgoing]-[DateIncoming] &amp;lt;=5 ,&amp;nbsp;&amp;nbsp; [DateOutgoing]-[DateIncoming] )' and see if that works.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;3. if that works, try disabling any other expression in the chart, it should filter it down has 0 values in expressions (so long as all expression in the chart have zeroes' )&amp;nbsp; are by default auto suppressed.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ps:&amp;nbsp; I'm not sure what context you need the minimum date... that wasn't clear in the first post&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;pps:&amp;nbsp; this is a bit of guesswork. its better to have an example to use . &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 17:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725586#M670614</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-14T17:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725587#M670615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a table with both received date and outgoing dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then applied if([CommSentDate]-[ReceivedDate] &amp;lt;=5 ,sum([CommSentDate]-[ReceivedDate]))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Time.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68893_Time.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;It appears to duplicate received dates and sent dates. It also does not match up in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second expression-min (Total&amp;lt;Id&amp;gt; CommSentDate) gave me the following:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Time 2.JPG.jpg" class="jive-image" src="/legacyfs/online/68903_Time 2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;The min date would be 1/1/2014 for a starting point. The thing is, I need the closet date from the start of each received message to match up with the closet sent date without confusion of past or future dates. Then I need to calculate what the date/time difference is between each compared date/time to figure out an average response time frame. I work in the medical field and the data I have cannot be shared, unfortunately.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured I'd start at a 5 day window. My hope is that messages are answered within 48 hours. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 17:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725587#M670615</guid>
      <dc:creator />
      <dc:date>2014-10-14T17:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725588#M670616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a few rows of representative data that isn't real as well as a picture or of the desired outcome ?&amp;nbsp; You can type both out in an excel spreadsheet. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 17:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725588#M670616</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-14T17:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725589#M670617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would be the desired outcome from the data above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Received Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Sent Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Time Response Within&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2700&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/1/2014 11:59:24 AM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/2/2014 2:55:24 PM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;27 hours&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2700&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2/20/2014 10:16:30 AM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2/21/2014 8:46:32 AM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;22 hours&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2700&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/26/2014 9:09:01 PM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/27/2014 8:31:33 AM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23 hrs&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not particular about how the time response is presented as long as I can read easily. &lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;0 days, 23 hours, 22 minutes and 32 seconds&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;23 hours&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 18:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725589#M670617</guid>
      <dc:creator />
      <dc:date>2014-10-14T18:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725590#M670618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i ask you to export the chart data to xls ?&amp;nbsp; It will save me typing it all out from the screenshot and also help you ultimately have an example that you can use with minimal translation back to your environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 18:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725590#M670618</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-14T18:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725591#M670619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me know if this does not work for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 20:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725591#M670619</guid>
      <dc:creator />
      <dc:date>2014-10-14T20:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725592#M670620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this expression to check the interval, locate the shortest interval in each grouping of ReceivedDate and render that value only.&amp;nbsp; If you have multiple PIDs you may have to add&amp;nbsp; &amp;lt;PID,ReceivedDate&amp;gt; below where there is only &amp;lt;ReceivedDate&amp;gt; to make the grouping unique to the combination of PID and receiveddate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68921_Capture.PNG.png" style="width: 620px; height: 137px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Interval( fabs(CommSentDate-ReceivedDate),'hh:mm') = min ( total&amp;nbsp; &amp;lt;ReceivedDate&amp;gt;&amp;nbsp; Interval( fabs(CommSentDate-ReceivedDate),'hh:mm')) ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Interval( fabs(CommSentDate-ReceivedDate),'hh:mm')&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 21:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725592#M670620</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-14T21:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725593#M670621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will give this a try tonight. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 22:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725593#M670621</guid>
      <dc:creator />
      <dc:date>2014-10-14T22:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725594#M670622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked perfectly! Your a life saver! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 13:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparisons/m-p/725594#M670622</guid>
      <dc:creator />
      <dc:date>2014-10-15T13:44:50Z</dc:date>
    </item>
  </channel>
</rss>

