<?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: Expression to find Records where OrderDate, Customer &amp; Sales Rep are same in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-to-find-Records-where-OrderDate-Customer-Sales-Rep/m-p/1113452#M367927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Your Expression&lt;/P&gt;&lt;P&gt;OrderID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (not OrderId)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Jun 2016 07:29:27 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2016-06-25T07:29:27Z</dc:date>
    <item>
      <title>Expression to find Records where OrderDate, Customer &amp; Sales Rep are same</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-find-Records-where-OrderDate-Customer-Sales-Rep/m-p/1113451#M367926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;Hi Guys,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;I have requirement where I would like to tag the Orders as dual Order if the following condition is matched&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Condition :&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #000000;"&gt;If a Customer is placing more then 1 order on a same day from same sales rep, then that order should be called a dual order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;As an example:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Customer &lt;EM&gt;&lt;STRONG&gt;Jon Snow&lt;/STRONG&gt;&lt;/EM&gt; is buying &lt;EM&gt;&lt;STRONG&gt;Milk&lt;/STRONG&gt;&lt;/EM&gt; from Sales Rep &lt;EM&gt;&lt;STRONG&gt;Tom&lt;/STRONG&gt;&lt;/EM&gt; on 22-June-2016.&lt;/LI&gt;&lt;LI&gt;On the same Order Date.. same Customer &lt;EM&gt;&lt;STRONG&gt;Jon Snow&lt;/STRONG&gt;&lt;/EM&gt; is now Buying &lt;EM&gt;&lt;STRONG&gt;Bread&lt;/STRONG&gt;&lt;/EM&gt; from same sales Rep &lt;EM&gt;&lt;STRONG&gt;Tom&lt;/STRONG&gt;&lt;/EM&gt; &lt;/LI&gt;&lt;LI&gt;then this is a dual order because order date, customer name and sales rep is same. (Product should not matter)&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So.. in the below Table, Order ID 1, 3, 8 &amp;amp; 9 Should have 'YES' in the Dual Product Column, but instead they all showing as 'NO'.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG alt="Screen Shot 2016-06-25 at 4.53.14 PM.png" class="jive-image image-1" src="/legacyfs/online/129164_Screen Shot 2016-06-25 at 4.53.14 PM.png" style="height: 179px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #333333;"&gt;I am using following expression in above straight table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;TOTAL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;FirstName&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;LastName&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;SalesRepID&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;OrderId&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;) &amp;gt; 1,'YES','NO') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have attached ZIP file contain sample QVD and QVW with logic definition and sample table.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2016 07:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-find-Records-where-OrderDate-Customer-Sales-Rep/m-p/1113451#M367926</guid>
      <dc:creator />
      <dc:date>2016-06-25T07:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to find Records where OrderDate, Customer &amp; Sales Rep are same</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-find-Records-where-OrderDate-Customer-Sales-Rep/m-p/1113452#M367927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Your Expression&lt;/P&gt;&lt;P&gt;OrderID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (not OrderId)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2016 07:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-find-Records-where-OrderDate-Customer-Sales-Rep/m-p/1113452#M367927</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-06-25T07:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to find Records where OrderDate, Customer &amp; Sales Rep are same</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-find-Records-where-OrderDate-Customer-Sales-Rep/m-p/1113453#M367928</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;&lt;SPAN style="color: #0000ff; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;TOTAL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FirstName&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;LastName&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;SalesRepID&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;OrderID&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;) &amp;gt; 1,'YES','NO')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;"OrderID" you are entered wrongly. so you are not getting your output.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier; color: #3d3d3d;"&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2016 07:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-find-Records-where-OrderDate-Customer-Sales-Rep/m-p/1113453#M367928</guid>
      <dc:creator>maniram23</dc:creator>
      <dc:date>2016-06-25T07:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to find Records where OrderDate, Customer &amp; Sales Rep are same</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-find-Records-where-OrderDate-Customer-Sales-Rep/m-p/1113454#M367929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys, and sorry it my silly mistake while creating this example QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But originally in my actual application I have half a million records and obviously due to privacy I can not post that application here... but I am 100% sure I have written the expression with correct field names but still some records comes up yes and some does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just out of curiosity, would there be any other expression to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2016 08:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-find-Records-where-OrderDate-Customer-Sales-Rep/m-p/1113454#M367929</guid>
      <dc:creator />
      <dc:date>2016-06-25T08:30:06Z</dc:date>
    </item>
  </channel>
</rss>

