<?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 Load Statement Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147074#M25531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for your answers, unfortunately I'm still having problems:&lt;/P&gt;&lt;P&gt;I'm working on a helpdesk bar chart.&lt;/P&gt;&lt;P&gt;I would like to know how many users (count on User) contacted in a selected period the helpdesk because of which problem (ErrorText). The Users should be grouped by Status New, Existing (this I would handle with an if clause in diagram expression if(User Status = 'New',....)).&lt;/P&gt;&lt;P&gt;My problem is that I don't get the right data to my bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is data sample data for user 68:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;User, TicketDate, TicketNr, ErrorText, User Status&lt;BR /&gt;68, 08.07.2008, XT1001, Text1, Existing&lt;BR /&gt;68, 08.07.2008, XT1001, Text2, Existing&lt;BR /&gt;68, 08.07.2008, XT1002, Text1, Existing&lt;BR /&gt;68, 08.07.2008, XT1002, Text2, Existing&lt;BR /&gt;68, 08.07.2008, XT2001, Text1, New&lt;BR /&gt;68, 08.07.2008, XT2001, Text2, New&lt;BR /&gt;68, 08.07.2008, XT2002, Text2, Existing&lt;BR /&gt;68, 08.07.2008, XT2003, Text1, Existing&lt;BR /&gt;68, 08.07.2008, XT2003, Text2, Existing&lt;BR /&gt;68, 12.07.2008, XT3001, Text3, Existing&lt;BR /&gt;68, 24.08.2008, XT3002, Text3, Existing&lt;BR /&gt;68, 09.09.2008, XT3003, Text4, Existing&lt;BR /&gt;68, 09.09.2008, XT3003, Text3, Existing&lt;BR /&gt;68, 11.10.2008, XT4001, Text5, Existing&lt;BR /&gt;68, 11.10.2008, XT4001, Text3, Existing&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I'm trying to create 2 "versions" of the chart. One with Distinct ErrorText per Day, one with every ErrorText per Day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jun 2009 19:08:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-21T19:08:39Z</dc:date>
    <item>
      <title>Load Statement Question</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147068#M25525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'd like to filter the field Desc_text during load. Data looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;UserNr. CaseNr. Desc_Text Date user_Status&lt;BR /&gt;=============================================================&lt;BR /&gt;17 101 Text1 08.07.08 New&lt;BR /&gt;17 201 Text1 08.07.08 Known&lt;BR /&gt;17 301 Text2 22.08.08 Known&lt;BR /&gt;17 301 Text1 17.08.08 Known&lt;BR /&gt;17 301 Text3 22.08.08 Known&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Outcome should look like:&lt;BR /&gt;&lt;BR /&gt;UserNr. CaseNr. Desc_Text Date user_Status&lt;BR /&gt;=============================================================&lt;BR /&gt;17 101 Text1 08.07.08 New&lt;BR /&gt;17 301 Text2 22.08.08 Known&lt;BR /&gt;17 301 Text3 22.08.08 Known&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 22:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147068#M25525</guid>
      <dc:creator />
      <dc:date>2009-06-17T22:43:56Z</dc:date>
    </item>
    <item>
      <title>Load Statement Question</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147069#M25526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use max function in the date field and group by the rest fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 00:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147069#M25526</guid>
      <dc:creator>hectorgarcia</dc:creator>
      <dc:date>2009-06-18T00:41:52Z</dc:date>
    </item>
    <item>
      <title>Load Statement Question</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147070#M25527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;MyData:&lt;BR /&gt;LOAD&lt;BR /&gt; UsrNr.&lt;BR /&gt;,CaseNr.&lt;BR /&gt;,Desc_Text&lt;BR /&gt;,user_Status&lt;BR /&gt;,max(Date) as Date&lt;BR /&gt;FROM &amp;lt;source&amp;gt;&lt;BR /&gt;GROUP BY&lt;BR /&gt; UsrNr.&lt;BR /&gt;,CaseNr.&lt;BR /&gt;,Desc_Text&lt;BR /&gt;,user_Status&lt;BR /&gt;;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;... it won't work because the case numbers and user_Status change, so you'd just get the input table. You also want the min function instead of max function. You're on the right track, though. I'd handle it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;MyData:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM &amp;lt;source&amp;gt;&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN&lt;BR /&gt;LOAD&lt;BR /&gt; Desc_Text&lt;BR /&gt;,min(Date) as Date&lt;BR /&gt;RESIDENT MyData&lt;BR /&gt;GROUP BY Desc_Text&lt;BR /&gt;;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Technically, that won't work either - you'll get two rows for Text1 08.07.08. How to resolve that depends on the specifics of your problem. Are you choosing New because New takes priority over Known? Are you choosing New because the CaseNr is lower? Is the Date in your example actually a timestamp, and New has the lowest timestamp?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 04:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147070#M25527</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-06-18T04:10:23Z</dc:date>
    </item>
    <item>
      <title>Load Statement Question</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147071#M25528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;test:&lt;BR /&gt;load * inline [&lt;BR /&gt; UserNr.,CaseNr.,Desc_Text,Date,user_Status&lt;BR /&gt; 17,101,Text1,08.07.08,New&lt;BR /&gt; 17,201,Text1,08.07.0,Known&lt;BR /&gt; 17,301,Text2,22.08.08,Known&lt;BR /&gt; 17,301,Text1,17.08.08,Known&lt;BR /&gt; 17,301,Text3,22.08.08,Known&lt;BR /&gt; ];&lt;BR /&gt;&lt;BR /&gt;test2:&lt;BR /&gt;noconcatenate Load *&lt;BR /&gt;resident test&lt;BR /&gt; Where Desc_Text &amp;lt;&amp;gt; previous(Desc_Text) order by Desc_Text asc;&lt;BR /&gt;&lt;BR /&gt;drop table test;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;it worked for me. &lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/5050.6_2D00_17_2D00_2009-7_2D00_53_2D00_28-PM.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/5050.6_2D00_17_2D00_2009-7_2D00_53_2D00_28-PM.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 06:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147071#M25528</guid>
      <dc:creator>Karl_Humma</dc:creator>
      <dc:date>2009-06-18T06:54:05Z</dc:date>
    </item>
    <item>
      <title>Load Statement Question</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147072#M25529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, you took the first record that was presented to you when you sorted by Desc_Text. I don't know about QlikView, but in DB2, for instance, the order of the records WITHIN a given Desc_Text is not guaranteed unless you sort by other fields within it. I wouldn't make the assumption that it is guaranteed in QlikView, either, unless you know for certain that it is. Also, I'm not certain that we can guarantee that the source data is in the desired order for a given Desc_Text. It might not be. Regardless, this takes me back to my question on how we decide which record to use. You used a generic idea of "the first one", but I believe it should be more explicit - that we need to know what we MEAN by "the first one".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 07:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147072#M25529</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-06-18T07:42:51Z</dc:date>
    </item>
    <item>
      <title>Load Statement Question</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147073#M25530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Make sure you have an ORDER BY Desc_Text clause on your data to ensure that you get the "first" item you want in each group.&lt;/P&gt;&lt;P&gt;2) Create a field using the "previous" function to determine whether this is the "first" line for a given Desc_Text:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(Desc_Text=previous(Desc_Text),0,1) AS MY_FLAG&lt;/P&gt;&lt;P&gt;3) Include a WHERE MY_FLAG = 0 clause&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 21:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147073#M25530</guid>
      <dc:creator />
      <dc:date>2009-06-18T21:40:00Z</dc:date>
    </item>
    <item>
      <title>Load Statement Question</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147074#M25531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for your answers, unfortunately I'm still having problems:&lt;/P&gt;&lt;P&gt;I'm working on a helpdesk bar chart.&lt;/P&gt;&lt;P&gt;I would like to know how many users (count on User) contacted in a selected period the helpdesk because of which problem (ErrorText). The Users should be grouped by Status New, Existing (this I would handle with an if clause in diagram expression if(User Status = 'New',....)).&lt;/P&gt;&lt;P&gt;My problem is that I don't get the right data to my bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is data sample data for user 68:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;User, TicketDate, TicketNr, ErrorText, User Status&lt;BR /&gt;68, 08.07.2008, XT1001, Text1, Existing&lt;BR /&gt;68, 08.07.2008, XT1001, Text2, Existing&lt;BR /&gt;68, 08.07.2008, XT1002, Text1, Existing&lt;BR /&gt;68, 08.07.2008, XT1002, Text2, Existing&lt;BR /&gt;68, 08.07.2008, XT2001, Text1, New&lt;BR /&gt;68, 08.07.2008, XT2001, Text2, New&lt;BR /&gt;68, 08.07.2008, XT2002, Text2, Existing&lt;BR /&gt;68, 08.07.2008, XT2003, Text1, Existing&lt;BR /&gt;68, 08.07.2008, XT2003, Text2, Existing&lt;BR /&gt;68, 12.07.2008, XT3001, Text3, Existing&lt;BR /&gt;68, 24.08.2008, XT3002, Text3, Existing&lt;BR /&gt;68, 09.09.2008, XT3003, Text4, Existing&lt;BR /&gt;68, 09.09.2008, XT3003, Text3, Existing&lt;BR /&gt;68, 11.10.2008, XT4001, Text5, Existing&lt;BR /&gt;68, 11.10.2008, XT4001, Text3, Existing&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I'm trying to create 2 "versions" of the chart. One with Distinct ErrorText per Day, one with every ErrorText per Day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2009 19:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147074#M25531</guid>
      <dc:creator />
      <dc:date>2009-06-21T19:08:39Z</dc:date>
    </item>
    <item>
      <title>Load Statement Question</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147075#M25532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There was a mistake in LoadScript, Lowest TicketNr should be Status New&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;User, TicketDate, TicketNr, ErrorText, User Status&lt;BR /&gt;68, 08.07.2008, XT1001, Text1, New&lt;BR /&gt;68, 08.07.2008, XT1001, Text2, New&lt;BR /&gt;68, 08.07.2008, XT1002, Text1, Existing&lt;BR /&gt;68, 08.07.2008, XT1002, Text2, Existing&lt;/P&gt;&lt;P&gt;68, 08.07.2008, XT2001, Text1, Existing&lt;BR /&gt;68, 08.07.2008, XT2001, Text2, Existing&lt;BR /&gt;68, 08.07.2008, XT2002, Text2, Existing&lt;BR /&gt;68, 08.07.2008, XT2003, Text1, Existing&lt;BR /&gt;68, 08.07.2008, XT2003, Text2, Existing&lt;BR /&gt;68, 12.07.2008, XT3001, Text3, Existing&lt;BR /&gt;68, 24.08.2008, XT3002, Text3, Existing&lt;BR /&gt;68, 09.09.2008, XT3003, Text4, Existing&lt;BR /&gt;68, 09.09.2008, XT3003, Text3, Existing&lt;BR /&gt;68, 11.10.2008, XT4001, Text5, Existing&lt;BR /&gt;68, 11.10.2008, XT4001, Text3, Existing&lt;BR /&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 14:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147075#M25532</guid>
      <dc:creator />
      <dc:date>2009-06-22T14:52:51Z</dc:date>
    </item>
    <item>
      <title>Load Statement Question</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147076#M25533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi *,&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; User,&lt;BR /&gt; ErrorText,&lt;BR /&gt; User_Status,&lt;BR /&gt; date(min(TicketDate),'DD.MM.YYYY') as Date&lt;BR /&gt;RESIDENT Test&lt;BR /&gt;GROUP BY TicketDate, ErrorText, User, User_Status&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Result is looking good.&lt;/P&gt;&lt;P&gt;But the Text1/2 is currently counted twice because of User_Status. Is there a chance to get rid of&lt;BR /&gt;exisiting ones if there are "the same errors" with status "new" on a certain day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6646.1.PNG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6646.1.PNG" /&gt;&lt;/A&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/0572.2.PNG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/0572.2.PNG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 21:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147076#M25533</guid>
      <dc:creator />
      <dc:date>2009-06-22T21:47:56Z</dc:date>
    </item>
    <item>
      <title>Load Statement Question</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147077#M25534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 00:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147077#M25534</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-06-23T00:28:49Z</dc:date>
    </item>
    <item>
      <title>Load Statement Question</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147078#M25535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;great. Exactly what I was looking for. Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 01:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Statement-Question/m-p/147078#M25535</guid>
      <dc:creator />
      <dc:date>2009-06-23T01:55:46Z</dc:date>
    </item>
  </channel>
</rss>

