<?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: Ignore certain rows of data? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ignore-certain-rows-of-data/m-p/585279#M1114867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post an example of the data you're using to generate that chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, have you tried putting an expression like =&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Transact_date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;SPAN style="font-size: 10pt;"&gt; into a straight table to see if the data then falls into better "chunks"?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Feb 2014 11:57:02 GMT</pubDate>
    <dc:creator>ThornOfCrowns</dc:creator>
    <dc:date>2014-02-28T11:57:02Z</dc:date>
    <item>
      <title>Ignore certain rows of data?</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-certain-rows-of-data/m-p/585278#M1114866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some transactional data, as you can see in the chart below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, we have a problem in that every now and again, one half of a transaction will be conducted in one week and the second half of it will be conducted the next week, which totally skews the figures. There is always a positive value to one side of these transactions and a negative value on the other side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see below, the last 5 weeks of data are correct, but the data in the first two weeks is totally wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="data.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/54026_data.bmp" style="width: 620px; height: 234px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a long shot, but is there any way for Qlikview to somehow determine erroneous transactions such as these and &lt;STRONG style="text-decoration: underline;"&gt;automatically&lt;/STRONG&gt; ignore them where the two sides of the same transaction do not occur in the same week? Or even for it to somehow 'fix' the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a bit new to Qlikview, so apologies if this a stupid question!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 11:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-certain-rows-of-data/m-p/585278#M1114866</guid>
      <dc:creator />
      <dc:date>2014-02-28T11:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore certain rows of data?</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-certain-rows-of-data/m-p/585279#M1114867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post an example of the data you're using to generate that chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, have you tried putting an expression like =&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Transact_date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;SPAN style="font-size: 10pt;"&gt; into a straight table to see if the data then falls into better "chunks"?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 11:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-certain-rows-of-data/m-p/585279#M1114867</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-02-28T11:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore certain rows of data?</title>
      <link>https://community.qlik.com/t5/QlikView/Ignore-certain-rows-of-data/m-p/585280#M1114868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it sounds here like you're going to need to do some scripting to eliminate / group these records during your load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing here that there's an ID field that links the positive and negative values together. And a date that's associated with each record, e.g TransactionDate. And, of course a value field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your script, you could do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TransactionDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Peek('ID', -1) = ID, 1, 0) as CompletedTransaction,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Peek('ID', -1) = ID, Peek('Value', -1) + Value, 0) as CompletedTransactionValue&lt;/P&gt;&lt;P&gt;FROM [your source]&lt;/P&gt;&lt;P&gt;ORDER BY ID, TransactionDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would group together pairs of ID values. Then, simply chart CompletedTransactionValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 12:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignore-certain-rows-of-data/m-p/585280#M1114868</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2014-02-28T12:20:46Z</dc:date>
    </item>
  </channel>
</rss>

