<?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: How to flag rows in script based on events? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574417#M479235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use either a OR statement&lt;/P&gt;&lt;P&gt;can try using also a Match or Mixmatch function&lt;/P&gt;&lt;P&gt;or Event &amp;lt;&amp;gt; 'VISIT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2014 10:05:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-12T10:05:12Z</dc:date>
    <item>
      <title>How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574412#M479230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So i got this issue, and i simply cannot figure out how to manage this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As in my previous post i want to find the row where there has been a BUY event when there also have been an Itemclick event within the same session. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice: It should be in the script and not in a expression (i think its too heavy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;RowID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;SessionID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Price&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Event&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Flag&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;114&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;itemclick&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;114&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;visit&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;114&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;90&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Buy&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;114&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;27&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Buy&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;168&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;26&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Buy&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;168&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;56&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Buy&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 08:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574412#M479230</guid>
      <dc:creator />
      <dc:date>2014-02-12T08:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574413#M479231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this. It is perhaps not optimum but it works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TempSales&lt;SPAN style="font-size: 10pt;"&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;SessionID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Event&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[107132.xlsx]&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;Data&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;Temp&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;LOAD &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;SessionID &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;TempSession&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;TempSales&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Where &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Event&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) = 'ITEMCLICK';&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;Sales&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;SessionID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Event&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Event&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) = 'BUY' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;TempSession&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;SessionID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;TempSales&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;DROP&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Tables&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;TempSales&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;Temp&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;&lt;STRONG style="color: #ff8000; font-size: 10pt;"&gt;Fabrice&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 09:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574413#M479231</guid>
      <dc:creator />
      <dc:date>2014-02-12T09:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574414#M479232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sweet - Can you maybe explain what it does in brief? How can i contorl if the flag should show -1 or 1 ? Currently its -1 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 09:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574414#M479232</guid>
      <dc:creator />
      <dc:date>2014-02-12T09:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574415#M479233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if i also want to flag all the itemclicks? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 09:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574415#M479233</guid>
      <dc:creator />
      <dc:date>2014-02-12T09:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574416#M479234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use &lt;STRONG&gt;if&lt;/STRONG&gt;(xxx, 1, 0) as Flage&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574416#M479234</guid>
      <dc:creator />
      <dc:date>2014-02-12T10:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574417#M479235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use either a OR statement&lt;/P&gt;&lt;P&gt;can try using also a Match or Mixmatch function&lt;/P&gt;&lt;P&gt;or Event &amp;lt;&amp;gt; 'VISIT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574417#M479235</guid>
      <dc:creator />
      <dc:date>2014-02-12T10:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574418#M479236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So something like this:&lt;/P&gt;&lt;P&gt;if(upper(Event) &amp;lt;&amp;gt; 'VISIT' and exists(TempSession, SessionID)=-1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(upper(Event) = 'ITEMCLICK'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,-1,1)) as Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Can you explain what this means:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exists(TempSession,SessionID) ? What does it do and where does&amp;nbsp; it look? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks for tempsession which exists in sessionid from? or?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:15:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574418#M479236</guid>
      <dc:creator />
      <dc:date>2014-02-12T10:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574419#M479237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii try this &lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;SessionID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Event,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;if(Wildmatch(upper(Event),'BUY'),1,0) as Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[107132.xlsx]&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;SPAN class="bfe4u4n89" style="border-top-color: transparent; border-right-color: transparent; border-left-color: transparent; font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;embedded&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff8000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Data&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574419#M479237</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-02-12T10:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574420#M479238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will give me a flag on all rows containing event buy - Thats not what im looking for &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574420#M479238</guid>
      <dc:creator />
      <dc:date>2014-02-12T10:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574421#M479239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, you want to put some data (1) into a flag depending on another field.If not 0 or anything else.&lt;/P&gt;&lt;P&gt;In the given example, I see SessionID 114 gets the number 1 because there is a field SessionID 114 and Event ItemClick, The other sessionID 168 gets 0 because there is no Itemclick Event. The Event BUY is common to both but it is not because you get a BUY that you get 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I am doing is to get a list of these SessionID that have an ItemClick Event (TempSession is a field storing that list)&lt;/P&gt;&lt;P&gt;Afterwards, with Exists() function, I may test the current SessionID compared to that list.&lt;/P&gt;&lt;P&gt;because the event ItemClick does not get 1 in the flag, I test the presence of the sessionID in the list (through Exist) and the type of Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574421#M479239</guid>
      <dc:creator />
      <dc:date>2014-02-12T10:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574422#M479240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD RowID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SessionID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Event, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(SessionID=SessionID,if(Match(Event,'Buy','itemclick')&amp;lt;&amp;gt;0,RowID)) as Output&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Book1.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574422#M479240</guid>
      <dc:creator />
      <dc:date>2014-02-12T10:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574423#M479241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aint working &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574423#M479241</guid>
      <dc:creator />
      <dc:date>2014-02-12T10:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574424#M479242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First click on a particular session and then check the Output. I already checked, its working fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 10:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574424#M479242</guid>
      <dc:creator />
      <dc:date>2014-02-12T10:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574425#M479243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope - It also takes sessions where there is no item.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 11:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574425#M479243</guid>
      <dc:creator />
      <dc:date>2014-02-12T11:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574426#M479244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;That should do it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have created a field with 2 fields, and I do an exists() on it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Fabrice; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574426#M479244</guid>
      <dc:creator />
      <dc:date>2014-02-19T16:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574427#M479245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant Aunez! Thank you so much. I was trying to see if i could get a table which only consisted of sessions which had a buy and itemclick. But i cannot seem to figure out how i would get a session table where it consists of session that have both itemclick and buy with same productids. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574427#M479245</guid>
      <dc:creator />
      <dc:date>2014-02-19T16:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574428#M479246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would you do if it should look like this?&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="448"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;RowID&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;SessionID&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;Price&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;Event&lt;/TD&gt;&lt;TD class="xl68" width="64"&gt;ProductID&lt;/TD&gt;&lt;TD width="64"&gt;Flag&lt;/TD&gt;&lt;TD width="64"&gt;FlagProductBuyItemClickBuy&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;114&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;20&lt;/TD&gt;&lt;TD class="xl84" style="border-top: none; border-left: none;" width="64"&gt;itemclick&lt;/TD&gt;&lt;TD class="xl85" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl86" width="64"&gt;-1&lt;/TD&gt;&lt;TD class="xl86" width="64"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;114&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;50&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;visit&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl82" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl82" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;114&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;90&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;Buy&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl82" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl82" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;114&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;27&lt;/TD&gt;&lt;TD class="xl84" style="border-top: none; border-left: none;" width="64"&gt;Buy&lt;/TD&gt;&lt;TD class="xl85" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl87" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl87" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;" width="64"&gt;5&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;" width="64"&gt;168&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="64"&gt;26&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;" width="64"&gt;Buy&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="20" style="border-top: none;" width="64"&gt;6&lt;/TD&gt;&lt;TD class="xl73" width="64"&gt;168&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none;" width="64"&gt;56&lt;/TD&gt;&lt;TD class="xl73" width="64"&gt;Buy&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="20" width="64"&gt;7&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;" width="64"&gt;114&lt;/TD&gt;&lt;TD class="xl76" style="border-left: none;" width="64"&gt;23&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="64"&gt;Basket&lt;/TD&gt;&lt;TD class="xl77" style="border-top: none;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="20" style="border-top: none;" width="64"&gt;8&lt;/TD&gt;&lt;TD class="xl94" style="border-top: none; border-left: none;" width="64"&gt;155&lt;/TD&gt;&lt;TD class="xl94" style="border-left: none;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl95" style="border-top: none; border-left: none;" width="64"&gt;itemclick&lt;/TD&gt;&lt;TD class="xl96" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl92" width="64"&gt;-1&lt;/TD&gt;&lt;TD class="xl92" width="64"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="20" style="border-top: none;" width="64"&gt;9&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;" width="64"&gt;155&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;" width="64"&gt;46&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="64"&gt;visit&lt;/TD&gt;&lt;TD class="xl77" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="20" style="border-top: none;" width="64"&gt;10&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;" width="64"&gt;155&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;" width="64"&gt;46&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="64"&gt;basket&lt;/TD&gt;&lt;TD class="xl77" style="border-top: none;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="20" style="border-top: none;" width="64"&gt;11&lt;/TD&gt;&lt;TD class="xl97" style="border-top: none; border-left: none;" width="64"&gt;155&lt;/TD&gt;&lt;TD class="xl97" style="border-top: none; border-left: none;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl98" style="border-top: none; border-left: none;" width="64"&gt;itemclick&lt;/TD&gt;&lt;TD class="xl99" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl100" width="64"&gt;-1&lt;/TD&gt;&lt;TD class="xl101" width="64"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="20" style="border-top: none;" width="64"&gt;12&lt;/TD&gt;&lt;TD class="xl78" style="border-left: none;" width="64"&gt;155&lt;/TD&gt;&lt;TD class="xl75" style="border-top: none; border-left: none;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl73" style="border-top: none; border-left: none;" width="64"&gt;visit&lt;/TD&gt;&lt;TD class="xl77" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl79" height="19" width="64"&gt;13&lt;/TD&gt;&lt;TD class="xl102" style="border-left: none;" width="64"&gt;155&lt;/TD&gt;&lt;TD class="xl102" style="border-left: none;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl103" style="border-left: none;" width="64"&gt;Buy&lt;/TD&gt;&lt;TD class="xl104" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl100" width="64"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl105"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl79" height="19" width="64"&gt;14&lt;/TD&gt;&lt;TD class="xl89" style="border-left: none;" width="64"&gt;155&lt;/TD&gt;&lt;TD class="xl89" style="border-left: none;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl90" style="border-left: none;" width="64"&gt;Buy&lt;/TD&gt;&lt;TD class="xl91" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl92" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl93" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl79" height="19" width="64"&gt;15&lt;/TD&gt;&lt;TD class="xl79" style="border-left: none;" width="64"&gt;155&lt;/TD&gt;&lt;TD class="xl79" style="border-left: none;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl80" style="border-left: none;" width="64"&gt;buy&lt;/TD&gt;&lt;TD class="xl81" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl88" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl79" height="19" width="64"&gt;16&lt;/TD&gt;&lt;TD class="xl79" style="border-left: none;" width="64"&gt;133&lt;/TD&gt;&lt;TD class="xl79" style="border-left: none;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl80" style="border-left: none;" width="64"&gt;Itemclick&lt;/TD&gt;&lt;TD class="xl81" width="64"&gt;6&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;-1&lt;/TD&gt;&lt;TD class="xl88" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl79" height="19" width="64"&gt;17&lt;/TD&gt;&lt;TD class="xl79" style="border-left: none;" width="64"&gt;133&lt;/TD&gt;&lt;TD class="xl79" style="border-left: none;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl80" style="border-left: none;" width="64"&gt;buy&lt;/TD&gt;&lt;TD class="xl81" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl88" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl79" height="19" width="64"&gt;18&lt;/TD&gt;&lt;TD class="xl79" style="border-left: none;" width="64"&gt;145&lt;/TD&gt;&lt;TD class="xl79" style="border-left: none;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl80" style="border-left: none;" width="64"&gt;Itemclick&lt;/TD&gt;&lt;TD class="xl81" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl88" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl79" height="19" width="64"&gt;19&lt;/TD&gt;&lt;TD class="xl79" style="border-left: none;" width="64"&gt;145&lt;/TD&gt;&lt;TD class="xl79" style="border-left: none;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl80" style="border-left: none;" width="64"&gt;visit&lt;/TD&gt;&lt;TD class="xl81" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl83" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl88" width="64"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(upper(Event) = 'ITEMCLICK', if(exists(TempSessionBuy,SessionID),1,0)) as FlagItemBuy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i also get 1 on those where there is a buy but they have not the same productid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 17:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574428#M479246</guid>
      <dc:creator />
      <dc:date>2014-02-19T17:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574429#M479247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 17:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574429#M479247</guid>
      <dc:creator />
      <dc:date>2014-02-19T17:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574430#M479248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep - thanks for that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; almost had it! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 17:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574430#M479248</guid>
      <dc:creator />
      <dc:date>2014-02-19T17:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: How to flag rows in script based on events?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574431#M479249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - as you can see in this excel ark - i have a new flag called FlagProductBuyLater&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flag should be 1, when the same cookieid has bought the same productid there has been an itemclick regardless of what session it is in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So cookieid 1 has an itemclick in session 114 on productid 8 but buys it first in session 178 on same productid 8 - then that line should have 1 in flag as illustrated in the excel file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 20:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-rows-in-script-based-on-events/m-p/574431#M479249</guid>
      <dc:creator />
      <dc:date>2014-02-19T20:05:44Z</dc:date>
    </item>
  </channel>
</rss>

