<?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: Detect same value in sequence - pivot in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289886#M107599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And even if you need KODE as dimension, this expression should work, then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(KODE=above(total KODE),'F','')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total is needed here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Aug 2011 13:49:37 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-08-22T13:49:37Z</dc:date>
    <item>
      <title>Detect same value in sequence - pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289878#M107591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QVer,&lt;BR /&gt;I need another help because I tried a lot with interrecord functions but without success.&lt;/P&gt;&lt;P&gt;There is a pivot table with three dimensions (ID, KODEDATE, KODE) sorted chronologically by KODEDATE.&lt;BR /&gt;The rule is that no KODE should be followed by itself over OPSDATE as you can see for ID1.&lt;BR /&gt;ID2 shows a sequence of always the same KODE (=99821) at different KODEDATE, this is wrong and I will find it out an mark it.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv_forum_opskode.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/6675_qv_forum_opskode.jpg" /&gt;&lt;BR /&gt;Can You help please. Thanks.&lt;BR /&gt;dj_skbs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 10:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289878#M107591</guid>
      <dc:creator />
      <dc:date>2011-08-22T10:53:18Z</dc:date>
    </item>
    <item>
      <title>Detect same value in sequence - pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289879#M107592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try the following expression:&lt;/P&gt;&lt;P&gt; if(Kode=above(Kode),'F','')&lt;/P&gt;&lt;P&gt;This only works if the Kode field is sorted to show the same Kode's in adjectant rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise some work in the script is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 11:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289879#M107592</guid>
      <dc:creator />
      <dc:date>2011-08-22T11:10:39Z</dc:date>
    </item>
    <item>
      <title>Detect same value in sequence - pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289880#M107593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks. But this won't work.&lt;/P&gt;&lt;P&gt;There's condition that KODE should be sorted dependent on KODEDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further idea?&lt;/P&gt;&lt;P&gt;dj_skbs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 11:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289880#M107593</guid>
      <dc:creator />
      <dc:date>2011-08-22T11:50:07Z</dc:date>
    </item>
    <item>
      <title>Detect same value in sequence - pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289881#M107594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried Bert's suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it will work if table is like shown above. And his comment on sort order is in accordance with your sort, isn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 12:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289881#M107594</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-22T12:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Detect same value in sequence - pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289882#M107595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Yes I tried Bert's expression in my original QVW and had my own unsuccessful experiences that way before.&lt;BR /&gt;I will send a little example QVW.&lt;BR /&gt;Condition:&lt;BR /&gt;No KODE (sort by KODEDATE) should be followed by the same value.&lt;BR /&gt;So KODE (ID2) = 99821 (11.01.2011 / 01.+ 08.02.2011) should be marked as false.&lt;/P&gt;&lt;P&gt;Let me say the requirements in other words:&lt;BR /&gt;For each ID KODEs will be documented beginning with the first day of ID presence.&lt;BR /&gt;When necessary another KODEs will be documented day(s) later but never the same KODE like the direct precursor.&lt;/P&gt;&lt;P&gt;Hope it's understandable.&lt;BR /&gt;dj_skbs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 13:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289882#M107595</guid>
      <dc:creator />
      <dc:date>2011-08-22T13:21:50Z</dc:date>
    </item>
    <item>
      <title>Detect same value in sequence - pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289883#M107596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using three columns&lt;/P&gt;&lt;P&gt;CODICE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PREVCODICE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLAG&lt;/P&gt;&lt;P&gt;SUM(KODE)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABOVE(SUM(KODE))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(CODICE=PREVCODICE,'F','')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 13:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289883#M107596</guid>
      <dc:creator />
      <dc:date>2011-08-22T13:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Detect same value in sequence - pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289884#M107597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei&lt;/P&gt;&lt;P&gt;check this one&lt;/P&gt;&lt;P&gt;i find it that in cases like yours is better to do the calculation&lt;/P&gt;&lt;P&gt;in the load script&lt;/P&gt;&lt;P&gt;hope its helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 13:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289884#M107597</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-22T13:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Detect same value in sequence - pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289885#M107598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you move the KODE column from dimension to expression, it is working (that's what I had assumed). Or do you need to group by KODE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 13:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289885#M107598</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-22T13:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Detect same value in sequence - pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289886#M107599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And even if you need KODE as dimension, this expression should work, then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(KODE=above(total KODE),'F','')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total is needed here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 13:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289886#M107599</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-22T13:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Detect same value in sequence - pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289887#M107600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You all. Stefan's proposal is optimal for me; I didn't recognise that variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the differences between swuehl and liron baram in&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv_forum_opskode2.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6687_qv_forum_opskode2.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;dj_skbs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 14:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-same-value-in-sequence-pivot/m-p/289887#M107600</guid>
      <dc:creator />
      <dc:date>2011-08-22T14:48:13Z</dc:date>
    </item>
  </channel>
</rss>

