<?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 replicate SQL Function ROW_NUMBER() OVER (PARTITION BY ) in QlikSense Tbl in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1595261#M43798</link>
    <description>&lt;P&gt;&lt;SPAN&gt;in script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NumSum(Peek('cumulative',-1)) + NumSum(field)) as cumulative,&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2019 17:11:53 GMT</pubDate>
    <dc:creator>danilostochi</dc:creator>
    <dc:date>2019-06-24T17:11:53Z</dc:date>
    <item>
      <title>How to replicate SQL Function ROW_NUMBER() OVER (PARTITION BY ) in QlikSense Tbl</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1588713#M43136</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Example Appointment Table &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Field Name&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field Description&lt;/P&gt;&lt;P&gt;Member&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;FirstName LastName&lt;/P&gt;&lt;P&gt;Appointment_Dt&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Date of the Appointment&lt;/P&gt;&lt;P&gt;Type&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; &amp;nbsp; &amp;nbsp; New, Scheduled Follow Up, Unscheduled Follow Up, Term&lt;/P&gt;&lt;P&gt;Confirmed&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; True if the member has confirmed appointment request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an existing SSRS report that will provide the next appointment for a member based on a few parameters (&lt;EM&gt;@AppointmentType, @AppointmentConfirmed&lt;/EM&gt;). To accomplish this I am using code similar to (example code attached):&lt;/P&gt;&lt;P&gt;SELECT * FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ROW_NUMBER() OVER (PARTITION BY Member ORDER BY Appointment_Dt ASC) QualifyingEventRowNum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM Appointments&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE [TYPE] IN (@AppointmentType) AND Confirmed=COALESCE(@AppointmentConfirmed, Confirmed) AND&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Appointment_Dt &amp;gt;= GETDATE()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) AS QryExample&lt;/P&gt;&lt;P&gt;WHERE QryExample.QualifyingEventRowNum = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This allows the users to generate a list of things like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Next New Appt, Next Confirmed New Appt ,Next Unconfirmed New Appt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Next Unscheduled Follow Up Appt, Next Confirmed Unscheduled Follow Up Appt, Next Unconfirmed Unscheduled Follow Up Appt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Next Scheduled Follow Up Appt, Next Confirmed Scheduled Follow Up Appt, Next Unconfirmed Scheduled Follow Up Appt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Next Term Appt, Next Confirmed Term Appt, Next Unconfirmed Term Appt&lt;/FONT&gt;&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; &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;FONT face="verdana,geneva"&gt;Example image below&lt;/FONT&gt; **&lt;/P&gt;&lt;P&gt;I would like to replicate this functionality in a table in qlik sense so that the data table dynamically reorders the next item based on the current filter selection(s). This essentially excludes performing the calculation in the load script. Can this be accomplished dynamically in Qlik Sense?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MemberAppointmentRowNumberExample.png" style="width: 991px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13245i87D07AD29E699313/image-size/large?v=v2&amp;amp;px=999" role="button" title="MemberAppointmentRowNumberExample.png" alt="MemberAppointmentRowNumberExample.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1588713#M43136</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2024-11-16T20:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate SQL Function ROW_NUMBER() OVER (PARTITION BY ) in QlikSense Tbl</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1589077#M43178</link>
      <description>&lt;P&gt;I attempted to attach the example code containing the records in the screenshot above only I can't attach the file a .sql or .txt so I posted the code below...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ExampleCodeRowNum06062019.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13315i1EFFD4B2FDFFB9B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="ExampleCodeRowNum06062019.png" alt="ExampleCodeRowNum06062019.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;DECLARE @AppointmentType as VARCHAR(50)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;DECLARE @AppointmentConfirmed as VARCHAR(5)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SET @AppointmentType='Scheduled Follow Up'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SET @AppointmentConfirmed=NULL&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;;WITH cteAppointments_01 AS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;(&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Galileo Galilei&amp;nbsp;'AS Member, CAST('01/10/2019' as date) AS Appointment_Dt, 'New' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Galileo Galilei&amp;nbsp;'AS Member, CAST('04/26/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Galileo Galilei&amp;nbsp;'AS Member, CAST('05/20/2019' as date) AS Appointment_Dt, 'Uncheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Galileo Galilei&amp;nbsp;'AS Member, CAST('05/24/2019' as date) AS Appointment_Dt, 'Uncheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Galileo Galilei&amp;nbsp;'AS Member, CAST('07/16/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'FALSE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Galileo Galilei&amp;nbsp;'AS Member, CAST('10/14/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Galileo Galilei&amp;nbsp;'AS Member, CAST('02/22/2020' as date) AS Appointment_Dt, 'Term' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Ben Bernanke'AS Member, CAST('01/26/2019' as date) AS Appointment_Dt, 'New' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Ben Bernanke'AS Member, CAST('04/28/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Ben Bernanke'AS Member, CAST('05/12/2019' as date) AS Appointment_Dt, 'Uncheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Ben Bernanke'AS Member, CAST('07/24/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Ben Bernanke'AS Member, CAST('07/29/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Ben Bernanke'AS Member, CAST('10/29/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'FALSE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Ben Bernanke'AS Member, CAST('02/28/2020' as date) AS Appointment_Dt, 'Term' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Roy Rogers'AS Member, CAST('02/05/2019' as date) AS Appointment_Dt, 'New' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Roy Rogers'AS Member, CAST('05/06/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Roy Rogers'AS Member, CAST('05/20/2019' as date) AS Appointment_Dt, 'Uncheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Roy Rogers'AS Member, CAST('08/05/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'FALSE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Roy Rogers'AS Member, CAST('11/05/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'FALSE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Roy Rogers'AS Member, CAST('03/08/2020' as date) AS Appointment_Dt, 'Term' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'James Joule'AS Member, CAST('03/12/2019' as date) AS Appointment_Dt, 'New' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'James Joule'AS Member, CAST('06/10/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'James Joule'AS Member, CAST('06/24/2019' as date) AS Appointment_Dt, 'Uncheduled Follow Up' AS Type, 'FALSE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'James Joule'AS Member, CAST('09/09/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'FALSE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'James Joule'AS Member, CAST('12/10/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'FALSE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'James Joule'AS Member, CAST('04/12/2020' as date) AS Appointment_Dt, 'Term' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Vince Vaughn'AS Member, CAST('03/27/2019' as date) AS Appointment_Dt, 'New' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Vince Vaughn'AS Member, CAST('06/25/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Vince Vaughn'AS Member, CAST('07/09/2019' as date) AS Appointment_Dt, 'Uncheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Vince Vaughn'AS Member, CAST('09/24/2019' as date) AS Appointment_Dt, 'Uncheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Vince Vaughn'AS Member, CAST('12/25/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'FALSE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Vince Vaughn'AS Member, CAST('04/27/2020' as date) AS Appointment_Dt, 'Term' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Melissa McCarthy'AS Member, CAST('06/27/2019' as date) AS Appointment_Dt, 'New' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Melissa McCarthy'AS Member, CAST('06/29/2019' as date) AS Appointment_Dt, 'Unscheduled Follow Up' AS Type, 'TRUE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Melissa McCarthy'AS Member, CAST('09/12/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'FALSE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Melissa McCarthy'AS Member, CAST('12/28/2019' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'FALSE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Melissa McCarthy'AS Member, CAST('03/29/2020' as date) AS Appointment_Dt, 'Scheduled Follow Up' AS Type, 'FALSE' AS Confirmed UNION ALL &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT 'Melissa McCarthy'AS Member, CAST('07/31/2020' as date) AS Appointment_Dt, 'Term' AS Type, 'FALSE' AS Confirmed&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;cteAppointments_02 AS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT *, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;ROW_NUMBER() OVER (PARTITION BY Member ORDER BY Appointment_Dt ASC) QualifyingEventRowNum&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;FROM cteAppointments_01&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;WHERE [TYPE] IN (@AppointmentType) AND Confirmed=COALESCE(@AppointmentConfirmed, Confirmed) AND Appointment_Dt &amp;gt;= GETDATE()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;SELECT * &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;FROM cteAppointments_02&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;WHERE QualifyingEventRowNum = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7" color="#999999"&gt;ORDER BY Member&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 13:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1589077#M43178</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2019-06-06T13:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate SQL Function ROW_NUMBER() OVER (PARTITION BY ) in QlikSense Tbl</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1589604#M43222</link>
      <description>&lt;P&gt;I was considering using the PEEK function but that is a load script function, not a chart function. I am open to any ideas. Thanks for reading.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1589604#M43222</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2019-06-07T13:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate SQL Function ROW_NUMBER() OVER (PARTITION BY ) in QlikSense Tbl</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1590199#M43312</link>
      <description>&lt;P&gt;I attempted to adapt the Above function as explained below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Missing-Manual-Above-and-Below/ta-p/1481948" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-Documents/Missing-Manual-Above-and-Below/ta-p/1481948&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to approximate the row number function but it doesn't seem like a viable solution since the results change&amp;nbsp;as the sort changes. I have opened up a case with support to see if there is a feature in Qlik Sense that I just have not found on the online help which would address my issue. If I find something, I will post the solution. Thanks for reading.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 21:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1590199#M43312</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2019-06-10T21:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate SQL Function ROW_NUMBER() OVER (PARTITION BY ) in QlikSense Tbl</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1590223#M43317</link>
      <description>&lt;P&gt;AGGR() is used to replace OverPartition in qlik&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 01:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1590223#M43317</guid>
      <dc:creator>Channa</dc:creator>
      <dc:date>2019-06-11T01:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate SQL Function ROW_NUMBER() OVER (PARTITION BY ) in QlikSense Tbl</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1593848#M43672</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;Aggr&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;RowNo&lt;/FONT&gt;(),(&lt;FONT color="#FF6600"&gt;Member&lt;/FONT&gt;,(string,Asc)),(&lt;FONT color="#FF6600"&gt;Appointment_Dt&lt;/FONT&gt;,(Numeric,Asc)))&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 21:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1593848#M43672</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2019-06-19T21:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate SQL Function ROW_NUMBER() OVER (PARTITION BY ) in QlikSense Tbl</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1595251#M43797</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-sortable-Aggr-function-is-finally-here/ba-p/1470262" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-sortable-Aggr-function-is-finally-here/ba-p/1470262&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 16:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1595251#M43797</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2019-06-24T16:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate SQL Function ROW_NUMBER() OVER (PARTITION BY ) in QlikSense Tbl</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1595261#M43798</link>
      <description>&lt;P&gt;&lt;SPAN&gt;in script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NumSum(Peek('cumulative',-1)) + NumSum(field)) as cumulative,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 17:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1595261#M43798</guid>
      <dc:creator>danilostochi</dc:creator>
      <dc:date>2019-06-24T17:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate SQL Function ROW_NUMBER() OVER (PARTITION BY ) in QlikSense Tbl</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1595308#M43803</link>
      <description>&lt;P&gt;I struggled with this issue for a week and didn’t find much information on my issue so I decided to create an example application for anyone who has this issue in the future. If anyone can improve upon my solution, I would appreciate your suggestions for a DYNAMIC solution (not a static load script solution although I put that in the example as well).&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 19:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1595308#M43803</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2019-06-24T19:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to replicate SQL Function ROW_NUMBER() OVER (PARTITION BY ) in QlikSense Tbl</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1595309#M43804</link>
      <description>&lt;P&gt;Just in case you don't want to bother with the download the screenshot contains the formula...&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 19:59:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-replicate-SQL-Function-ROW-NUMBER-OVER-PARTITION-BY-in/m-p/1595309#M43804</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2019-06-24T19:59:14Z</dc:date>
    </item>
  </channel>
</rss>

