<?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: Create a flag for duplicate values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-a-flag-for-duplicate-values/m-p/1634145#M47238</link>
    <description>&lt;P&gt;In this scenario I would Create an aggregated mapping table first to count the rows and then use conditional logic when loading in the data to determine the multi-room status.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Map_Count_Unique_Rows:&lt;BR /&gt;Mapping&lt;BR /&gt;Load&lt;BR /&gt;Offices &amp;amp; '-' &amp;amp; Hotel &amp;amp; '-' &amp;amp; Timestamp As Lookup_Booking,&lt;BR /&gt;COUNT(Offices &amp;amp; '-' &amp;amp; Hotel &amp;amp; '-' &amp;amp; Timestamp) As No_of_Bookings&lt;BR /&gt;FROM [lib://.......qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;GROUP BY&lt;BR /&gt;Offices ,&lt;BR /&gt;Hotel ,&lt;BR /&gt;Timestamp;&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;IF( APPLYMAP('Map_Count_Unique_Rows',Offices &amp;amp; '-' &amp;amp; Hotel &amp;amp; '-' &amp;amp; Timestamp,0)&amp;gt;1 ,'Yes','No') as Multiroom&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;&lt;BR /&gt;&lt;BR /&gt;FROM [lib://.......qvd]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 09:28:09 GMT</pubDate>
    <dc:creator>dazerano</dc:creator>
    <dc:date>2019-10-11T09:28:09Z</dc:date>
    <item>
      <title>Create a flag for duplicate values</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-flag-for-duplicate-values/m-p/1634110#M47231</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am looking for a way to identify duplicate values in Qliksense.&lt;/P&gt;&lt;P&gt;In the app I am building I have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Office&lt;/LI&gt;&lt;LI&gt;Hotel&lt;/LI&gt;&lt;LI&gt;Timestamp&lt;/LI&gt;&lt;LI&gt;Number of Bookings&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If an Office has 2 bookings for the same Hotel and with the same Timestamp, then it means that the Office booked 2 rooms in that Hotel simultaneously.&lt;/P&gt;&lt;P&gt;I have made a concatenation of "Offices"&amp;amp;"Hotel"&amp;amp;"Timestamp" and I would like to create a flag called "Multiroom".&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If&amp;nbsp;"Offices"&amp;amp;"Hotel"&amp;amp;"Timestamp" is unique, then "Multiroom" is "No"&lt;/LI&gt;&lt;LI&gt;If&amp;nbsp;"Offices"&amp;amp;"Hotel"&amp;amp;"Timestamp" is repeated, then "Multiroom" is "Yes"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With this, I would create a table with Multiroom Yes/No and the Sum(Number of Bookings) in each category.&lt;/P&gt;&lt;P&gt;The are infinite combinations of&amp;nbsp;"Offices"&amp;amp;"Hotel"&amp;amp;"Timestamp", so I can't use the INLINE formula in the script as mentioned in this thread:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Identifying-duplicate-records-using-the-script/td-p/6001" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/Identifying-duplicate-records-using-the-script/td-p/6001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Could anyone help?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-flag-for-duplicate-values/m-p/1634110#M47231</guid>
      <dc:creator>analovera</dc:creator>
      <dc:date>2024-11-16T19:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create a flag for duplicate values</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-flag-for-duplicate-values/m-p/1634145#M47238</link>
      <description>&lt;P&gt;In this scenario I would Create an aggregated mapping table first to count the rows and then use conditional logic when loading in the data to determine the multi-room status.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Map_Count_Unique_Rows:&lt;BR /&gt;Mapping&lt;BR /&gt;Load&lt;BR /&gt;Offices &amp;amp; '-' &amp;amp; Hotel &amp;amp; '-' &amp;amp; Timestamp As Lookup_Booking,&lt;BR /&gt;COUNT(Offices &amp;amp; '-' &amp;amp; Hotel &amp;amp; '-' &amp;amp; Timestamp) As No_of_Bookings&lt;BR /&gt;FROM [lib://.......qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;GROUP BY&lt;BR /&gt;Offices ,&lt;BR /&gt;Hotel ,&lt;BR /&gt;Timestamp;&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;IF( APPLYMAP('Map_Count_Unique_Rows',Offices &amp;amp; '-' &amp;amp; Hotel &amp;amp; '-' &amp;amp; Timestamp,0)&amp;gt;1 ,'Yes','No') as Multiroom&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;&lt;BR /&gt;&lt;BR /&gt;FROM [lib://.......qvd]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 09:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-flag-for-duplicate-values/m-p/1634145#M47238</guid>
      <dc:creator>dazerano</dc:creator>
      <dc:date>2019-10-11T09:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a flag for duplicate values</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-flag-for-duplicate-values/m-p/1643871#M48020</link>
      <description>&lt;P&gt;Thank you Dazerano, finally I managed to do it in a different way. This is the script I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Table1&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;OFFICES,&lt;BR /&gt;HOTEL,&lt;BR /&gt;TIMESTAMP,&lt;BR /&gt;"Number of Booking",&lt;BR /&gt;"OFFICES"&amp;amp;"HOTEL&amp;amp;"TIMESTAMP " as "CONCATENATE"&lt;/P&gt;&lt;P&gt;from....QVD&lt;/P&gt;&lt;P&gt;//CREATE AN INTERMEDIATE TABLE TO GROUP BY CONCATENATE&lt;BR /&gt;Qualify *;&lt;BR /&gt;MULTI_:&lt;BR /&gt;LOAD&lt;BR /&gt;CONCATENATE,&lt;BR /&gt;Sum("Number of Booking") as "Booking"&lt;BR /&gt;Resident Table1&lt;BR /&gt;Group by [CONCATENATE];&lt;BR /&gt;Unqualify *;&lt;/P&gt;&lt;P&gt;//SELECT ONLY THOSE RECORDS WITH MORE THAN ONE BOOKING&lt;BR /&gt;MULTI:&lt;BR /&gt;LOAD&lt;BR /&gt;MULTI_.CONCATENATE AS "CONCATENATE",&lt;BR /&gt;MULTI_.Booking AS "MultiroomBookings"&lt;BR /&gt;Resident MULTI_&lt;BR /&gt;Where MULTI_.Booking &amp;lt;&amp;gt; '1';&lt;/P&gt;&lt;P&gt;//DELETE INTERMEDIATE TABLE&lt;BR /&gt;DROP TABLE MULTI_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-flag-for-duplicate-values/m-p/1643871#M48020</guid>
      <dc:creator>analovera</dc:creator>
      <dc:date>2019-11-06T16:11:33Z</dc:date>
    </item>
  </channel>
</rss>

