<?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: If record value equals to previous then skip (script help) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-record-value-equals-to-previous-then-skip-script-help/m-p/1525988#M438416</link>
    <description>&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;PRE&gt;tmpData:
LOAD
    Product,
    Date,
    Price
FROM
    ...source_table...
    ;

Result:
NOCONCATENATE LOAD
   Product,
   Date,
   Price
WHERE
    Flag =1
    ;
LOAD
    Product,
    Date,
    Price,
    If(Previous(Product)&amp;lt;&amp;gt;Product OR Previous(Price)&amp;lt;&amp;gt;Price,1,0) as Flag
RESIDENT
    tmpData
ORDER BY
    Product,
    Date DESC
    ;

DROP TABLE tmpData;&lt;/PRE&gt;</description>
    <pubDate>Thu, 03 Jan 2019 17:48:45 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2019-01-03T17:48:45Z</dc:date>
    <item>
      <title>If record value equals to previous then skip (script help)</title>
      <link>https://community.qlik.com/t5/QlikView/If-record-value-equals-to-previous-then-skip-script-help/m-p/1525968#M438415</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Could someone help me build this script in Qlik Sense?&lt;/P&gt;&lt;P&gt;I have "price" listed on a chronological base and, if the price is equal to previous date record, it should be skipped (dismissed).&lt;/P&gt;&lt;P&gt;Table on the left my source data and table on the right my expected result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="last_value_change.jpg" style="width: 705px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2953iD59A6F806FCE784E/image-size/large?v=v2&amp;amp;px=999" role="button" title="last_value_change.jpg" alt="last_value_change.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-record-value-equals-to-previous-then-skip-script-help/m-p/1525968#M438415</guid>
      <dc:creator>alessandrotk</dc:creator>
      <dc:date>2024-11-16T04:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: If record value equals to previous then skip (script help)</title>
      <link>https://community.qlik.com/t5/QlikView/If-record-value-equals-to-previous-then-skip-script-help/m-p/1525988#M438416</link>
      <description>&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;PRE&gt;tmpData:
LOAD
    Product,
    Date,
    Price
FROM
    ...source_table...
    ;

Result:
NOCONCATENATE LOAD
   Product,
   Date,
   Price
WHERE
    Flag =1
    ;
LOAD
    Product,
    Date,
    Price,
    If(Previous(Product)&amp;lt;&amp;gt;Product OR Previous(Price)&amp;lt;&amp;gt;Price,1,0) as Flag
RESIDENT
    tmpData
ORDER BY
    Product,
    Date DESC
    ;

DROP TABLE tmpData;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jan 2019 17:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-record-value-equals-to-previous-then-skip-script-help/m-p/1525988#M438416</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-01-03T17:48:45Z</dc:date>
    </item>
  </channel>
</rss>

