<?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 what's the expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294464#M109252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No,in your case it will give for each AAA-CM the minimum date for them all&lt;/P&gt;&lt;P&gt;but what i want is that&lt;/P&gt;&lt;P&gt;for example when getting the left(Field1,3) in case of AAAE which is AAA and have Field2=CM, i want to compare it with the first AAA which has the Field2=BB , so both of them shouldn't have the same NewDate which is the minimum one&lt;/P&gt;&lt;P&gt;No,Because of Field2 is different in both records each one will reserve its Date as it's&lt;/P&gt;&lt;P&gt;Is the problem clear??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 13:03:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-20T13:03:55Z</dc:date>
    <item>
      <title>what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294457#M109245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;/SPAN&gt;Hi,&lt;/P&gt;&lt;P&gt;i have this table and i need an expression to evaluate the NewDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="217" style="width: 291px; height: 219px; border-width: 1px; border-color: #000000; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Field1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Field2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;NewDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;17/4/2011&lt;/TD&gt;&lt;TD&gt;AAA&lt;/TD&gt;&lt;TD&gt;BB&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;18/4/2011&lt;/TD&gt;&lt;TD&gt;AAAA&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19/4/2011&lt;/TD&gt;&lt;TD&gt;AAAB&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20/4/2011&lt;/TD&gt;&lt;TD&gt;AAAC&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21/4/2011&lt;/TD&gt;&lt;TD&gt;AAAD&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22/4/2011&lt;/TD&gt;&lt;TD&gt;AAAE&lt;/TD&gt;&lt;TD&gt;RH&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23/4/2011&lt;/TD&gt;&lt;TD&gt;AAAF&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;24/4/2011&lt;/TD&gt;&lt;TD&gt;AAAG&lt;/TD&gt;&lt;TD&gt;BB&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the load i added load for left(Field1,3) and called it Field3&lt;/P&gt;&lt;P&gt;what i want is that"if Field3=Field1 and Field2 is equal in both records"&lt;/P&gt;&lt;P&gt;for example in case of Field1=AAAG and the left(Field,3) will equal AAA the corresponding value for Field2 in this record =BB&lt;/P&gt;&lt;P&gt;and there's AAA in Field1 and its corresponding value in Field2 is BB&lt;/P&gt;&lt;P&gt;So, i want the NewDate for both records to be the minimum date of both records which is 17/4/2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final result i want is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="217" style="cursor: default; border-collapse: collapse; border: inherit; width: 291px; height: 219px; border-width: 1px; border-color: #000000; border-style: solid; margin: -1px;"&gt;&lt;TBODY style="border-style: solid;"&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TH align="center" style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Field1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Field2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;NewDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;17/4/2011&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;AAA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;BB&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;17/4/2011&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;&lt;SPAN&gt;18/4/2011&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;AAAA&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;18/4/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;19/4/201&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;AAAB&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;19/4/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;20/4/2011&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;AAAC&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;20/4/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;21/4/2011&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;AAAD&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;21/4/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;22/4/2011&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;AAAE&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;RH&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;22/4/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;23/4/2011&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;AAAF&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;23/4/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;24/4/2011&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;AAAG&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;BB&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;17/4/2011&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&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, 20 Jul 2011 11:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294457#M109245</guid>
      <dc:creator />
      <dc:date>2011-07-20T11:31:56Z</dc:date>
    </item>
    <item>
      <title>what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294458#M109246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. add to your first load the following field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;left(Field1,3) &amp;amp; '|' &amp;amp; Field2 as NewDateKey&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. add the following table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;newDate:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewDateKey,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(Date2) as NewDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident loadData&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by NewDateKey;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. join this table back to your initail load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;originalData:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; join (originalData) load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewDateKey,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident newDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. then drop the work table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;drop table newDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294458#M109246</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-07-20T11:50:26Z</dc:date>
    </item>
    <item>
      <title>what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294459#M109247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could also use combined field3:&lt;/P&gt;&lt;P&gt;left(Field1,3) &amp;amp; Field2 as Field3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then load a new table using your table sorted by Field3 and Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newDateTable:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;if(peek(Field3)=Field3,peek(NewDate), NewDate) as NewDate&lt;/P&gt;&lt;P&gt; resident yourTable order by Field3, Date ASC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an idea,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294459#M109247</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-20T11:51:30Z</dc:date>
    </item>
    <item>
      <title>what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294460#M109248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Data_Temp:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;Date1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Field11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Field21 &lt;/P&gt;&lt;P&gt;17/4/2011,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AAA,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BB&lt;/P&gt;&lt;P&gt;18/4/2011,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AAAA,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CM&lt;/P&gt;&lt;P&gt;19/4/2011,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AAAB,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CM&lt;/P&gt;&lt;P&gt;20/4/2011,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AAAC,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CM&lt;/P&gt;&lt;P&gt;21/4/2011,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AAAD,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CM&lt;/P&gt;&lt;P&gt;22/4/2011,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AAAE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RH&lt;/P&gt;&lt;P&gt;23/4/2011,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AAAF,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CM&lt;/P&gt;&lt;P&gt;24/4/2011,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AAAG,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BB&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load date(date#(Date1,'DD/MM/YYYY'),'DD/MM/YYYY') as Date,&lt;/P&gt;&lt;P&gt;Field11 as Field1,&lt;/P&gt;&lt;P&gt;left(Field11,3) as Field3,&lt;/P&gt;&lt;P&gt;Field21 as Field2&lt;/P&gt;&lt;P&gt;Resident Data_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Data1:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Field3 ,&lt;/P&gt;&lt;P&gt;Field2 ,&lt;/P&gt;&lt;P&gt;Date(min(Date)) as Date2&lt;/P&gt;&lt;P&gt;Resident Data group by Field2,Field3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Drop table Data_Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 12:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294460#M109248</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-20T12:00:48Z</dc:date>
    </item>
    <item>
      <title>what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294461#M109249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No,didn't give me the wanted result&lt;/P&gt;&lt;P&gt;it compares NewDateKey field with itself but i want it to compare it with Field1&lt;/P&gt;&lt;P&gt;So,the NewDate wasn't right&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 12:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294461#M109249</guid>
      <dc:creator />
      <dc:date>2011-07-20T12:48:28Z</dc:date>
    </item>
    <item>
      <title>what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294462#M109250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not the expected result&lt;/P&gt;&lt;P&gt;it gives me each time the previous date &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 12:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294462#M109250</guid>
      <dc:creator />
      <dc:date>2011-07-20T12:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294463#M109251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei mona&lt;/P&gt;&lt;P&gt;attach is example of what you asked for&lt;/P&gt;&lt;P&gt;the example have contains two solutions:&lt;/P&gt;&lt;P&gt;1. in an expression look at the first expression&lt;/P&gt;&lt;P&gt;2. in the load script look inside the script&lt;/P&gt;&lt;P&gt;hope its helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 13:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294463#M109251</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-07-20T13:02:47Z</dc:date>
    </item>
    <item>
      <title>what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294464#M109252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No,in your case it will give for each AAA-CM the minimum date for them all&lt;/P&gt;&lt;P&gt;but what i want is that&lt;/P&gt;&lt;P&gt;for example when getting the left(Field1,3) in case of AAAE which is AAA and have Field2=CM, i want to compare it with the first AAA which has the Field2=BB , so both of them shouldn't have the same NewDate which is the minimum one&lt;/P&gt;&lt;P&gt;No,Because of Field2 is different in both records each one will reserve its Date as it's&lt;/P&gt;&lt;P&gt;Is the problem clear??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 13:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294464#M109252</guid>
      <dc:creator />
      <dc:date>2011-07-20T13:03:55Z</dc:date>
    </item>
    <item>
      <title>what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294465#M109253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I must have misunderstood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought you wanted to test the first three characters of field 1 plus the value of field 2. This is what the NewDateKey contains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for which record does it produce the wrong result, and what is the reulst you woudl expect to have - this may help me understand your reuirement better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 13:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294465#M109253</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-07-20T13:04:42Z</dc:date>
    </item>
    <item>
      <title>what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294466#M109254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help &lt;/P&gt;&lt;P&gt;but ﻿﻿unfortunately not the wanted result&lt;/P&gt;&lt;P&gt;i want each time the( left(Field1,3)=Field3) to compare it self with Field1 again &lt;/P&gt;&lt;P&gt;so the only 2 records which will have the same date is the first and last one because&lt;/P&gt;&lt;P&gt;the first record has Field1=AAA and Field2=BB&lt;/P&gt;&lt;P&gt;record2 has Field3=AAA and Field2=CM and Field1=AAAA &lt;/P&gt;&lt;P&gt;record3 has Field3=AAA and Field2=CM and Field1=AAAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when comparing record2 and 3 with record1 comparin Field3 in both with Field1 in record1 and comparing Field2 in the 3 records&lt;/P&gt;&lt;P&gt;record 2 not equal to record1 and the same record3 is not equal to record1&lt;/P&gt;&lt;P&gt;so each one will reserve each Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the problem is clear now&lt;/P&gt;&lt;P&gt;and Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 13:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294466#M109254</guid>
      <dc:creator />
      <dc:date>2011-07-20T13:14:00Z</dc:date>
    </item>
    <item>
      <title>what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294467#M109255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never Mind,&lt;/P&gt;&lt;P&gt;The expected result is the second table in my original post &lt;/P&gt;&lt;P&gt;the only 2 records will be affected are record one and three&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 13:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294467#M109255</guid>
      <dc:creator />
      <dc:date>2011-07-20T13:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294468#M109256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei mona&lt;/P&gt;&lt;P&gt;check the new attachment&lt;/P&gt;&lt;P&gt;last try&lt;/P&gt;&lt;P&gt;look at the load script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 13:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294468#M109256</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-07-20T13:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: what's the expression</title>
      <link>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294469#M109257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alot &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 06:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-s-the-expression/m-p/294469#M109257</guid>
      <dc:creator />
      <dc:date>2011-07-21T06:29:58Z</dc:date>
    </item>
  </channel>
</rss>

