<?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 Data Import and Processing Issue. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308782#M113990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a millions!&amp;nbsp; That did the trick!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2011 22:10:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-16T22:10:02Z</dc:date>
    <item>
      <title>Data Import and Processing Issue.</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308778#M113986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question about an issue that I just cannot resolve. I am importing data from an XML source. See attached file for sample of the data. The data imports into two tables into QlikView.&amp;nbsp; One table holds the general TroubleTicket information, and the other table holds the state history for the troubletickets.&amp;nbsp; In SQL this is a one to many relationship.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to do a lot of additional processing on this data, and my reports must filter on a bunch of fields as well.&amp;nbsp; One of my first issues is how do I select a record, and then only the lastested state information from the State table? Each state has a timestamp, so I need to select the greatest one for each TroubleTicket and that will serve as both the current and final status for that ticket as this point an time. I know how to do this in SQL, but I cannot figure it out in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Marek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 19:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308778#M113986</guid>
      <dc:creator />
      <dc:date>2011-12-16T19:26:07Z</dc:date>
    </item>
    <item>
      <title>Data Import and Processing Issue.</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308779#M113987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you want to filter on the final status in the load script, i.e. limiting your data model to the filtered data? Or do you want to keep all data and just filter in a chart object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 20:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308779#M113987</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-16T20:02:16Z</dc:date>
    </item>
    <item>
      <title>Data Import and Processing Issue.</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308780#M113988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I would filter on the load script.&amp;nbsp; Because once I have the values I need to create additional calculated fields for my reports.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not too much to ask, can we do both?&amp;nbsp; i.e. keep a raw_data table with all the data and filter in the chart object? and create another table with the processed data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 20:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308780#M113988</guid>
      <dc:creator />
      <dc:date>2011-12-16T20:26:23Z</dc:date>
    </item>
    <item>
      <title>Data Import and Processing Issue.</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308781#M113989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, should be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To start, if you want to filter the state table for each issue on last or final ID and date/time, you could do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATE:&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Creationdate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Creationtime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_ISSUE_D1DDF45FA4C35DB9&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: SIRE/ISSUE&lt;/P&gt;&lt;P&gt;FROM C:\Users\Stefan\AppData\Local\Opera\Opera\temporary_downloads\sampledata.xml (XmlSimple, Table is [SIRE/ISSUE/STATE]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISSUE:&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currentstate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Submitdate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Submittime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lasttransdate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lasttranstime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Classification,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Occurredinenvironment,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Priority,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shortdescription,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_ISSUE_D1DDF45FA4C35DB9&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: SIRE/ISSUE&lt;/P&gt;&lt;P&gt;FROM C:\Users\Stefan\AppData\Local\Opera\Opera\temporary_downloads\sampledata.xml (XmlSimple, Table is [SIRE/ISSUE]);&lt;/P&gt;&lt;P&gt;// End of [sampledata.xml] LOAD statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; firstsortedvalue(ID, -(Creationdate+Creationtime)) as FinalID&lt;/P&gt;&lt;P&gt; ,firstsortedvalue(Creationdate, -(Creationdate+Creationtime)) as FinalDate&lt;/P&gt;&lt;P&gt; ,firstsortedvalue(Creationtime, -(Creationdate+Creationtime)) as FinalTime&lt;/P&gt;&lt;P&gt; ,%Key_ISSUE_D1DDF45FA4C35DB9&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key to parent table: SIRE/ISSUE&lt;/P&gt;&lt;P&gt;resident STATE group by %Key_ISSUE_D1DDF45FA4C35DB9;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 21:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308781#M113989</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-16T21:03:03Z</dc:date>
    </item>
    <item>
      <title>Data Import and Processing Issue.</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308782#M113990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a millions!&amp;nbsp; That did the trick!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 22:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308782#M113990</guid>
      <dc:creator />
      <dc:date>2011-12-16T22:10:02Z</dc:date>
    </item>
    <item>
      <title>Data Import and Processing Issue.</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308783#M113991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a similar way, you could also do this in the UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example create a straight table chart with dimension %Key_ISSUE..... and then as expression for FinalID e.g.&lt;/P&gt;&lt;P&gt;=firstsortedvalue(ID, -(Creationdate+Creationtime))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice weekend,&lt;/P&gt;&lt;P&gt; Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 22:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Import-and-Processing-Issue/m-p/308783#M113991</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-16T22:21:38Z</dc:date>
    </item>
  </channel>
</rss>

