<?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 Matching postcodes in data by timeframe (NHS) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290479#M107833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping someone can help me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset that contains postcodes and a timestamp when the record was created I ideally need to be able to say if there is another entry for this postcode within a 24hr period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;postcode -&amp;nbsp; xx22 4xx&amp;nbsp; time -&amp;nbsp; 00:00:00&lt;/P&gt;&lt;P&gt;postcode -&amp;nbsp; xx22 4xx&amp;nbsp; time -&amp;nbsp; 01:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to count this entry as a match as it occured within a 24hr period. I am not sure how to do&amp;nbsp; this as they will be on different records in the databse. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really appreciate any help people can give me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2011 10:35:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-11T10:35:49Z</dc:date>
    <item>
      <title>Matching postcodes in data by timeframe (NHS)</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290479#M107833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping someone can help me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset that contains postcodes and a timestamp when the record was created I ideally need to be able to say if there is another entry for this postcode within a 24hr period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;postcode -&amp;nbsp; xx22 4xx&amp;nbsp; time -&amp;nbsp; 00:00:00&lt;/P&gt;&lt;P&gt;postcode -&amp;nbsp; xx22 4xx&amp;nbsp; time -&amp;nbsp; 01:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to count this entry as a match as it occured within a 24hr period. I am not sure how to do&amp;nbsp; this as they will be on different records in the databse. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really appreciate any help people can give me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 10:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290479#M107833</guid>
      <dc:creator />
      <dc:date>2011-05-11T10:35:49Z</dc:date>
    </item>
    <item>
      <title>Matching postcodes in data by timeframe (NHS)</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290480#M107834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please can you post a QV document with sample data? It will help us to provide some ideas...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers - DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 11:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290480#M107834</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-11T11:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Matching postcodes in data by timeframe (NHS)</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290481#M107835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for having a look at this. I have attached a Qlikview document with a table that contains incident number, postcode and time clock start. Where there are multiple entries for a postcode within 24hrs of each other I would like to do a count of these. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 12:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290481#M107835</guid>
      <dc:creator />
      <dc:date>2011-05-11T12:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Matching postcodes in data by timeframe (NHS)</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290482#M107836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Quick question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Lets assume you have some data like this...&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 282px;"&gt;&lt;COL style="width: 42pt;" width="56" /&gt; &lt;COL style="width: 89pt;" width="118" /&gt; &lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="height: 12.75pt; width: 81pt;" width="108"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;IncidentNumber&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; width: 42pt;" width="56"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Postcode&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; width: 89pt;" width="118"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;TimeClockStart&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;S001&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;XX22 4XX&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;01/04/2011&amp;nbsp; 00:00:00 .&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;S002&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;XX22 4XX&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;01/04/2011&amp;nbsp; 05:00:00 .&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;S005&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;XX22 4XX&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;01/04/2011&amp;nbsp; 22:00:00 .&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;S006&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;XX22 4XX&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;01/06/2011&amp;nbsp; 18:00:00 .&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;S007&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;XX22 4XX&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;01/08/2011&amp;nbsp; 22:00:00 .&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;S008&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;XX22 4XX&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;01/09/2011&amp;nbsp; 20:00:00 .&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Now do you want to count the postcodes within last 24 hours &lt;STRONG&gt;(0 in this example) &lt;/STRONG&gt;or do you want to count the time difference between each postcode and if it is less than 24hrs then count them up &lt;STRONG&gt;(5 in this example)&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I am assuming that you want the later! however, I wanted to make sure before I go ahead and try something on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 08:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290482#M107836</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-12T08:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Matching postcodes in data by timeframe (NHS)</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290483#M107837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct it is the latter open that we would like to achieve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"do you want to count the time difference between each postcode and if it is less than 24hrs then count them up &lt;STRONG&gt;(5 in this example)&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for looking at this for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Viv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 08:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290483#M107837</guid>
      <dc:creator />
      <dc:date>2011-05-12T08:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Matching postcodes in data by timeframe (NHS)</title>
      <link>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290484#M107838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Hi Viv,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Sorry, I could not provide you complete solution. But here is what I had tried so far... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I had created 2 variables :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;vPostCode : ONLY({$} Postcode)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003366; font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;vMinTime : MIN({1&amp;lt; Postcode = {'$(=($(vPostCode)))'}&amp;gt;} TimeClockStart)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Now vMinTime variable gives me the lowest timestamp for the postcode selected. Then I thought I could use the chart to substract the &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;SPAN style="color: #003366;"&gt;&lt;STRONG&gt;(TimeStamp - $(=($(vMinTime))) )&lt;/STRONG&gt; &lt;/SPAN&gt;to get the difference for each TimeStamp across all the postcode. Next I thought I could use the Count of &lt;SPAN style="color: #003366;"&gt;&lt;STRONG&gt;(TimeStamp - $(=($(vMinTime))) ) &amp;lt;= 1&lt;/STRONG&gt;&lt;/SPAN&gt; (1day). However, my variable is calculating for each dimension inspite of specify&lt;SPAN style="color: #003366;"&gt; &lt;STRONG&gt;{1}&lt;/STRONG&gt;&lt;/SPAN&gt; for the TimeStamp. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Probably I need to think in different approach. I'll come back to you with alternate solution. Meanwhile can someone look into this please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Also attaching my version of QV document.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Good luck!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 14:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Matching-postcodes-in-data-by-timeframe-NHS/m-p/290484#M107838</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-05-12T14:17:22Z</dc:date>
    </item>
  </channel>
</rss>

