<?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: Need Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/865997#M1003969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution depends on you model.&lt;/P&gt;&lt;P&gt;For example if you have one fact table with incident number and unit and datetime field then you could do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; incident,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datetime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(previos(incident)&amp;lt;&amp;gt;incident,1,peek('unit_order'))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as unit_order&lt;/P&gt;&lt;P&gt;resident your_table&lt;/P&gt;&lt;P&gt;order by&lt;/P&gt;&lt;P&gt;incident,&lt;/P&gt;&lt;P&gt;datetime;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop your_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can build table using set_analysis. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimention:&lt;/P&gt;&lt;P&gt;unit&lt;/P&gt;&lt;P&gt;expression:&lt;/P&gt;&lt;P&gt;count ({$&amp;lt;unit_order={1}&amp;gt;} incident)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2015 07:17:06 GMT</pubDate>
    <dc:creator>pokassov</dc:creator>
    <dc:date>2015-05-28T07:17:06Z</dc:date>
    <item>
      <title>Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/865996#M1003968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good evening, I am new to Qlik (started using it today).&amp;nbsp; I am using the desktop version, and had some help from an acquaintance setting up my first app and it is working great.&amp;nbsp; I am using the program as an alternative to one we were using and has since been shut down.&amp;nbsp; I am a member of a fire department and we are using to analyze our response times and are in the process of gathering the data for a presentation to our city administration in about 2 weeks.&amp;nbsp; I am looking at records pulled out of our records management system and am trying to figure out how to drill into the data a little differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We currently have pulled out our incidents and have them filtered by incident number and then we are showing the units that have responded to the call and all of the corresponding times that we need for the report.&amp;nbsp; A lot of the incidents have multiple units that have responded to the call (some as many as 15-20), however I only need to look at the times associated with the first few units that respond.&amp;nbsp; For example, I have incident number 12345 and units 101, 102, 103 and 104 have responded on the call each with different times.&amp;nbsp; I need to be able to just look at the times for the unit that arrived on scene first, this would be easy to figure out if it was just one incident, however I am looking at thousands of incidents and need to apply this to all of them in a range. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is there any way to write a formula or something that will allow me to review times based on the order the units responded?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Lentz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 03:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/865996#M1003968</guid>
      <dc:creator />
      <dc:date>2015-05-28T03:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/865997#M1003969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution depends on you model.&lt;/P&gt;&lt;P&gt;For example if you have one fact table with incident number and unit and datetime field then you could do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; incident,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datetime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(previos(incident)&amp;lt;&amp;gt;incident,1,peek('unit_order'))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as unit_order&lt;/P&gt;&lt;P&gt;resident your_table&lt;/P&gt;&lt;P&gt;order by&lt;/P&gt;&lt;P&gt;incident,&lt;/P&gt;&lt;P&gt;datetime;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop your_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can build table using set_analysis. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimention:&lt;/P&gt;&lt;P&gt;unit&lt;/P&gt;&lt;P&gt;expression:&lt;/P&gt;&lt;P&gt;count ({$&amp;lt;unit_order={1}&amp;gt;} incident)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 07:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/865997#M1003969</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-05-28T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/865998#M1003970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, unfortunately I am very new to this whole thing with a very basic knowledge.&amp;nbsp; So basically I am not exactly sure what you are saying. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would either of the examples you gave be used in the Qlik desktop or would those be excel formulas, not exactly sure where to use them or put them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 11:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/865998#M1003970</guid>
      <dc:creator />
      <dc:date>2015-05-28T11:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help/m-p/865999#M1003971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;// some test data (if you can post your Qlik doc (.qvw) we can use your real data)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TestTable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; floor(rand()*100)+1 as Incident,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 'Unit ' &amp;amp; floor(rand()*100) as Unit,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; date(makedate(2015)+rand()*100 + rand()/(24*60)) as DateTime&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoGenerate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1000;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Incident,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; // this is the order for the same incident&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if(peek(Incident)&amp;lt;&amp;gt;Incident, 1, peek(RespOrder)+1) as RespOrder,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Unit,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &lt;EM style="font-size: 13.3333330154419px;"&gt;DateTime&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident TestTable&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Order by Incident, &lt;EM style="font-size: 13.3333330154419px;"&gt;DateTime&lt;/EM&gt;, Unit;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table TestTable;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you can use RespOrder to filter the first 2 or 3 or n units&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87867_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 19:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help/m-p/865999#M1003971</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-05-28T19:42:13Z</dc:date>
    </item>
  </channel>
</rss>

