<?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: Compare rows and Create flag in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689376#M52618</link>
    <description>&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;Thanks for the reply. It is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 10:45:54 GMT</pubDate>
    <dc:creator>sunainapawar</dc:creator>
    <dc:date>2020-03-31T10:45:54Z</dc:date>
    <item>
      <title>Compare rows and Create flag</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1688967#M52578</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to compare the customer_id's in the same table, and create a Flag of values as New and Existing.&lt;/P&gt;&lt;P&gt;I tried below in the script. I tried to compare the customer_id with previous customer_id, if it matches, then it should be 'Existing', If it doesnot matches then it should be new Customer_id. I took this flag in front end but its not working. For both existing and New values there are no matching customer_id's shown.&lt;/P&gt;&lt;P&gt;processed_xp_customer_master:&lt;BR /&gt;LOAD&lt;BR /&gt;customer_id,&lt;BR /&gt;customer_enrolled_on,&lt;BR /&gt;customer_enrolled_on &amp;amp; customer_id as key&lt;/P&gt;&lt;P&gt;from customer.xlsx;&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;customer_enrolled_on &amp;amp; customer_id as key,&lt;BR /&gt;if((customer_id)=Previous(customer_id),'Existing Customer',&lt;BR /&gt;'New customer') as customer_id_flag&lt;BR /&gt;Resident processed_xp_customer_master&lt;BR /&gt;Order by&lt;BR /&gt;customer_enrolled_on,&lt;BR /&gt;customer_id&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;I have ordered it by customers enrollment date and customer_id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1688967#M52578</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2024-11-16T18:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare rows and Create flag</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1688994#M52579</link>
      <description>&lt;P&gt;Try it with a change within the ordered fields - means at first to sort for the customer_id and then for the enrolled-values (the order in which the fields are listed in the order by statement is important).&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 13:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1688994#M52579</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-03-30T13:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare rows and Create flag</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689004#M52580</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try following it may be helpful to you&lt;/P&gt;&lt;P&gt;if(Peek('&lt;SPAN&gt;customer_id&lt;/SPAN&gt;')&amp;lt;&amp;gt;&lt;SPAN&gt;customer_id&lt;/SPAN&gt;,'New &lt;SPAN&gt;Customer&lt;/SPAN&gt;',&lt;SPAN&gt;'Existing Customer'&lt;/SPAN&gt; ) as &lt;SPAN&gt;as customer_id_flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nitin.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 14:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689004#M52580</guid>
      <dc:creator>NitinK7</dc:creator>
      <dc:date>2020-03-30T14:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compare rows and Create flag</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689012#M52581</link>
      <description>&lt;P&gt;Hi! see attached qvw. the script:&lt;/P&gt;&lt;P&gt;processed_xp_customer_master:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;customer_id, customer_enrolled_on&lt;BR /&gt;1, 1/1/2020&lt;BR /&gt;2, 10/1/2020&lt;BR /&gt;3, 2/1/2020&lt;BR /&gt;4, 3/1/2020&lt;BR /&gt;2, 4/1/2020&lt;BR /&gt;5, 3/1/2020&lt;BR /&gt;3, 1/2/2020&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;customers:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;load Distinct&lt;BR /&gt;customer_id as cust,&lt;BR /&gt;customer_enrolled_on as date,&lt;BR /&gt;if(Exists(cust,customer_id),1) as _exists&lt;BR /&gt;Resident processed_xp_customer_master&lt;BR /&gt;Order by customer_enrolled_on;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 14:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689012#M52581</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2020-03-30T14:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare rows and Create flag</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689290#M52605</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;Thanks for the reply. I tried changing the order as well but its not working.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 06:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689290#M52605</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2020-03-31T06:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compare rows and Create flag</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689292#M52606</link>
      <description>&lt;P&gt;Hello Sebastiandperei,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I tried to use the above script and loaded, but when i take the flag in front end and select 1 value to check,there are no customer_id's associated to it. I have attached the screenshot.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 06:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689292#M52606</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2020-03-31T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compare rows and Create flag</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689294#M52607</link>
      <description>&lt;P&gt;Add a recno() and a rowno() to the load to see which record is ordered in which way. If it didn't worked like expected it could be caused through the fact that your fields aren't numeric or they might be also a dual() value and the numeric value is here different to the string-part.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 06:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689294#M52607</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-03-31T06:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compare rows and Create flag</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689317#M52610</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try following&lt;/P&gt;&lt;P&gt;customer_id, customer_enrolled_on&lt;BR /&gt;1, 1/1/2020&lt;BR /&gt;2, 10/1/2020&lt;BR /&gt;3, 2/1/2020&lt;BR /&gt;4, 3/1/2020&lt;BR /&gt;2, 4/1/2020&lt;BR /&gt;5, 3/1/2020&lt;BR /&gt;3, 1/2/2020&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PQR:&lt;BR /&gt;LOAD *,&lt;BR /&gt;&lt;FONT color="#99CC00"&gt;if(Peek('customer_id')&amp;lt;&amp;gt;customer_id,'New Customer','Existing Customer' ) as customer_id_flag&lt;/FONT&gt;&lt;BR /&gt;Resident ABC&lt;BR /&gt;Order By customer_id,customer_enrolled_on ;&lt;/P&gt;&lt;P&gt;DROP Table ABC;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flag.PNG" style="width: 668px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30970i95AE524421B88E89/image-size/large?v=v2&amp;amp;px=999" role="button" title="flag.PNG" alt="flag.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 07:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689317#M52610</guid>
      <dc:creator>NitinK7</dc:creator>
      <dc:date>2020-03-31T07:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compare rows and Create flag</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689376#M52618</link>
      <description>&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;Thanks for the reply. It is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 10:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-rows-and-Create-flag/m-p/1689376#M52618</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2020-03-31T10:45:54Z</dc:date>
    </item>
  </channel>
</rss>

