<?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 Show single value of dimension where date =max(date) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Show-single-value-of-dimension-where-date-max-date/m-p/1980876#M80941</link>
    <description>&lt;P&gt;Hi All.&lt;/P&gt;
&lt;P&gt;I have the following expression which is giving data for the max Date&lt;/P&gt;
&lt;P&gt;Max(Date([Expiry Date2],'DD/MM/YYYY')).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davyqliks_0-1663154729207.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89078iFD255D1CFC2D7B94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davyqliks_0-1663154729207.png" alt="davyqliks_0-1663154729207.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when i add a new field to the table (cert_attach) i get the max date for all of the certs (which all have individual values)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davyqliks_1-1663154839692.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89079i8DD9EB343FC3F283/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davyqliks_1-1663154839692.png" alt="davyqliks_1-1663154839692.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can i write an expression please to only show the relevant cert_attach (scope certificate) for only the max date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when i try the following as a measure i am getting null return.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If([Expiry Date2] = Max(Date([Expiry Date2],'DD/MM/YYYY')),cert_attach)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davyqliks_2-1663155034858.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89080i776E333DF7FE09F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davyqliks_2-1663155034858.png" alt="davyqliks_2-1663155034858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 11:31:50 GMT</pubDate>
    <dc:creator>davyqliks</dc:creator>
    <dc:date>2022-09-14T11:31:50Z</dc:date>
    <item>
      <title>Show single value of dimension where date =max(date)</title>
      <link>https://community.qlik.com/t5/App-Development/Show-single-value-of-dimension-where-date-max-date/m-p/1980876#M80941</link>
      <description>&lt;P&gt;Hi All.&lt;/P&gt;
&lt;P&gt;I have the following expression which is giving data for the max Date&lt;/P&gt;
&lt;P&gt;Max(Date([Expiry Date2],'DD/MM/YYYY')).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davyqliks_0-1663154729207.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89078iFD255D1CFC2D7B94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davyqliks_0-1663154729207.png" alt="davyqliks_0-1663154729207.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when i add a new field to the table (cert_attach) i get the max date for all of the certs (which all have individual values)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davyqliks_1-1663154839692.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89079i8DD9EB343FC3F283/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davyqliks_1-1663154839692.png" alt="davyqliks_1-1663154839692.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can i write an expression please to only show the relevant cert_attach (scope certificate) for only the max date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when i try the following as a measure i am getting null return.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If([Expiry Date2] = Max(Date([Expiry Date2],'DD/MM/YYYY')),cert_attach)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davyqliks_2-1663155034858.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89080i776E333DF7FE09F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davyqliks_2-1663155034858.png" alt="davyqliks_2-1663155034858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 11:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-single-value-of-dimension-where-date-max-date/m-p/1980876#M80941</guid>
      <dc:creator>davyqliks</dc:creator>
      <dc:date>2022-09-14T11:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Show single value of dimension where date =max(date)</title>
      <link>https://community.qlik.com/t5/App-Development/Show-single-value-of-dimension-where-date-max-date/m-p/1980911#M80944</link>
      <description>&lt;P&gt;Try these&lt;/P&gt;
&lt;P&gt;=Max(Aggr(Maxstring(cert_attach),[Expiry Date2]))&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;=Maxstring({&amp;lt;[Expiry Date2]={"$(=MAX([Expiry Date2]))"}&amp;gt;}cert_attach)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 12:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-single-value-of-dimension-where-date-max-date/m-p/1980911#M80944</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-09-14T12:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Show single value of dimension where date =max(date)</title>
      <link>https://community.qlik.com/t5/App-Development/Show-single-value-of-dimension-where-date-max-date/m-p/1980921#M80947</link>
      <description>&lt;P&gt;Thank you for the suggestion,&lt;/P&gt;
&lt;P&gt;i have found there is another value in the data forcing the cert over multiple lines. Factory Profile.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davyqliks_0-1663160337850.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89092i5A47F2F2FB16700F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="davyqliks_0-1663160337850.png" alt="davyqliks_0-1663160337850.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so in theory what i have is the unique cert for the max date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need the measure to be a dimension. so when i use your version here with Aggr()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Aggr(Maxstring({&amp;lt;[Expiry Date2]={"$(=MAX([Expiry Date2]))"}&amp;gt;}cert_attach),[Expiry Date2])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks correct but only shows the max record once i un filter everything. so this will not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really appreciate your help, thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 13:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Show-single-value-of-dimension-where-date-max-date/m-p/1980921#M80947</guid>
      <dc:creator>davyqliks</dc:creator>
      <dc:date>2022-09-14T13:03:36Z</dc:date>
    </item>
  </channel>
</rss>

