<?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 Max Date - Multiple Entries when trying to pull for a single products in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Date-Multiple-Entries-when-trying-to-pull-for-a-single/m-p/67585#M788039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I have a table of data that contains a Product Code , Sales date ( date only no time) , Customer Name and Sales Qty In a QS table.&amp;nbsp; I am pulling I the last Sales date( max)&amp;nbsp;&amp;nbsp; which works fine. However, as soon as I pull the customer name&amp;nbsp; ( where there could be multiple customers purchasing on the same day) I get the line replicated per customer. How can I just pull just one customer ( as an example customer) .&amp;nbsp; I know this sound strange but our Sales team just want to see a random customer for that day. I would have used Qty i.e Max Qty but this could be replicated as well on the same .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Max Date - Multiple Entries when trying to pull for a single products</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date-Multiple-Entries-when-trying-to-pull-for-a-single/m-p/67585#M788039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I have a table of data that contains a Product Code , Sales date ( date only no time) , Customer Name and Sales Qty In a QS table.&amp;nbsp; I am pulling I the last Sales date( max)&amp;nbsp;&amp;nbsp; which works fine. However, as soon as I pull the customer name&amp;nbsp; ( where there could be multiple customers purchasing on the same day) I get the line replicated per customer. How can I just pull just one customer ( as an example customer) .&amp;nbsp; I know this sound strange but our Sales team just want to see a random customer for that day. I would have used Qty i.e Max Qty but this could be replicated as well on the same .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date-Multiple-Entries-when-trying-to-pull-for-a-single/m-p/67585#M788039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date - Multiple Entries when trying to pull for a single products</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date-Multiple-Entries-when-trying-to-pull-for-a-single/m-p/67586#M788040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share sample data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expectation is to find the customer with max(date), like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 16:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date-Multiple-Entries-when-trying-to-pull-for-a-single/m-p/67586#M788040</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-02-07T16:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date - Multiple Entries when trying to pull for a single products</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date-Multiple-Entries-when-trying-to-pull-for-a-single/m-p/67587#M788041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff, maybe using rand with the number of different customers and use this to load only one customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCustomerIndex = Ceil(Rand()*FieldValuecount('&lt;EM&gt;CustomerCode&lt;/EM&gt;'));&lt;/P&gt;&lt;P&gt;LET vCustomerCode = FieldValue('&lt;EM&gt;CustomerCode&lt;/EM&gt;', $(&lt;SPAN style="font-size: 13.3333px;"&gt;vCustomer&lt;SPAN style="font-size: 13.3333px;"&gt;Index&lt;/SPAN&gt;&lt;/SPAN&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RandomCustomer:&lt;/P&gt;&lt;P&gt;LOAD Fields&lt;/P&gt;&lt;P&gt;From/Resident&lt;/P&gt;&lt;P&gt;Where &lt;EM&gt;CustomerCode&lt;/EM&gt;='$(&lt;SPAN style="font-size: 13.3333px;"&gt;vCustomerCode&lt;/SPAN&gt;)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 17:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date-Multiple-Entries-when-trying-to-pull-for-a-single/m-p/67587#M788041</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-02-07T17:35:12Z</dc:date>
    </item>
  </channel>
</rss>

