<?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 Mark latest record on the basis date as considered else not considered in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158230#M93841</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am having 1 scenario where i have to mark in data latest record on the basis of Interaction_Created_Date for same policy as "Considered" and all other records of same policy no. as "Not_considered" below given is the e.g&lt;/P&gt;
&lt;TABLE width="413"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="115"&gt;CHDRNUM&lt;/TD&gt;
&lt;TD width="195"&gt;INTERACTION_CREATED_DATE&lt;/TD&gt;
&lt;TD width="103"&gt;Remark&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;456789&lt;/TD&gt;
&lt;TD&gt;20/07/2023&lt;/TD&gt;
&lt;TD&gt;Not_considered&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;456789&lt;/TD&gt;
&lt;TD&gt;25/08/2023&lt;/TD&gt;
&lt;TD&gt;Not_considered&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;456789&lt;/TD&gt;
&lt;TD&gt;04/12/2023&lt;/TD&gt;
&lt;TD&gt;Considered&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;amp; if only single record is there then mark it as "Considered".&lt;/P&gt;
&lt;P&gt;Can anyone help to achieve this&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 11:15:33 GMT</pubDate>
    <dc:creator>P_Kale</dc:creator>
    <dc:date>2024-01-04T11:15:33Z</dc:date>
    <item>
      <title>Mark latest record on the basis date as considered else not considered</title>
      <link>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158230#M93841</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am having 1 scenario where i have to mark in data latest record on the basis of Interaction_Created_Date for same policy as "Considered" and all other records of same policy no. as "Not_considered" below given is the e.g&lt;/P&gt;
&lt;TABLE width="413"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="115"&gt;CHDRNUM&lt;/TD&gt;
&lt;TD width="195"&gt;INTERACTION_CREATED_DATE&lt;/TD&gt;
&lt;TD width="103"&gt;Remark&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;456789&lt;/TD&gt;
&lt;TD&gt;20/07/2023&lt;/TD&gt;
&lt;TD&gt;Not_considered&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;456789&lt;/TD&gt;
&lt;TD&gt;25/08/2023&lt;/TD&gt;
&lt;TD&gt;Not_considered&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;456789&lt;/TD&gt;
&lt;TD&gt;04/12/2023&lt;/TD&gt;
&lt;TD&gt;Considered&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;amp; if only single record is there then mark it as "Considered".&lt;/P&gt;
&lt;P&gt;Can anyone help to achieve this&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 11:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158230#M93841</guid>
      <dc:creator>P_Kale</dc:creator>
      <dc:date>2024-01-04T11:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mark latest record on the basis date as considered else not considered</title>
      <link>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158240#M93844</link>
      <description>&lt;P&gt;You could create a variable with max value of your date field. Then based on that variable create if statement if(variable=&lt;SPAN&gt;INTERACTION_CREATED_DATE, 'Considered','Not_considered')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 11:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158240#M93844</guid>
      <dc:creator>MATC</dc:creator>
      <dc:date>2024-01-04T11:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mark latest record on the basis date as considered else not considered</title>
      <link>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158242#M93845</link>
      <description>&lt;P&gt;Sorry but not understood. How to create a max date variable. As every policy will have different dates.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 11:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158242#M93845</guid>
      <dc:creator>P_Kale</dc:creator>
      <dc:date>2024-01-04T11:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mark latest record on the basis date as considered else not considered</title>
      <link>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158245#M93846</link>
      <description>&lt;P&gt;Didn't understand that you had different policies and you wanted to have a max date on a number of policies.&lt;BR /&gt;So instead of variable you can create a field in script by creating new temp table.&lt;BR /&gt;&lt;BR /&gt;temp:&lt;BR /&gt;load&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;CHDRNUM&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;max(INTERACTION_CREATED_DATE) as field&lt;BR /&gt;&lt;/SPAN&gt;resident source_table&lt;BR /&gt;group by&amp;nbsp;&lt;SPAN&gt;CHDRNUM;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;And then create another table with given if statement but instead of variable you can use this new field to create the remarks field.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 11:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158245#M93846</guid>
      <dc:creator>MATC</dc:creator>
      <dc:date>2024-01-04T11:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mark latest record on the basis date as considered else not considered</title>
      <link>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158249#M93847</link>
      <description>&lt;P&gt;give a try something like below:&lt;/P&gt;
&lt;P&gt;test:&lt;/P&gt;
&lt;P&gt;load id,date,id&amp;amp;date as Key from source&lt;/P&gt;
&lt;P&gt;left join(test)&lt;/P&gt;
&lt;P&gt;load id,id&amp;amp;maxdate as Key1&lt;/P&gt;
&lt;P&gt;load id,max(date) as maxdate resident test group by id;&lt;/P&gt;
&lt;P&gt;noconcatenate&lt;/P&gt;
&lt;P&gt;load id,date,maxdate,if(Key=Key1,'considered','Not condidered') as flag resident test;&lt;/P&gt;
&lt;P&gt;drop table test;&lt;/P&gt;
&lt;P&gt;Note:this is not the exact script,need to do some changes as per your date format..&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 11:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158249#M93847</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2024-01-04T11:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mark latest record on the basis date as considered else not considered</title>
      <link>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158255#M93848</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First create a variable like,&lt;/P&gt;
&lt;P&gt;MaxDate = Max(&lt;SPAN&gt;INTERACTION_CREATED_DATE)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=If(Num(INTERACTION_CREATED_DATE)=$(MaxDate),'Considered','Not_Considered')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You will get answer.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 12:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158255#M93848</guid>
      <dc:creator>Parthiban</dc:creator>
      <dc:date>2024-01-04T12:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Mark latest record on the basis date as considered else not considered</title>
      <link>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158411#M93870</link>
      <description>&lt;P&gt;Thanks It works.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 19:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mark-latest-record-on-the-basis-date-as-considered-else-not/m-p/2158411#M93870</guid>
      <dc:creator>P_Kale</dc:creator>
      <dc:date>2024-01-04T19:24:30Z</dc:date>
    </item>
  </channel>
</rss>

