<?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 Get max date using wildcard and set analysis? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Get-max-date-using-wildcard-and-set-analysis/m-p/52037#M3483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having several problems with a chart function I am trying to write. I need to get the max date when several conditions are true. It is a simple query to run in SQL and looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(*),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(Date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; FROM Table&lt;/P&gt;&lt;P&gt;WHERE (ConditionA LIKE '%qualifier%' OR Condition B LIKE '%qualifier%')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND ConditionC = 'False'&lt;/P&gt;&lt;P&gt;GROUP BY Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This query counts the number of instances where the conditions are true and finds the most recent occurrence where they were all true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlik Sense, it seems like the best way to go about this would be through set analysis, but I can't get the syntax to work.&lt;/P&gt;&lt;P&gt;I am unable to get wildcards or wildmatch to work in set analysis and have no idea how to use set analysis to get a max(date) calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not married to set analysis if an if statement or other solution would work better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2018 21:38:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-17T21:38:44Z</dc:date>
    <item>
      <title>Get max date using wildcard and set analysis?</title>
      <link>https://community.qlik.com/t5/App-Development/Get-max-date-using-wildcard-and-set-analysis/m-p/52037#M3483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having several problems with a chart function I am trying to write. I need to get the max date when several conditions are true. It is a simple query to run in SQL and looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNT(*),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(Date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; FROM Table&lt;/P&gt;&lt;P&gt;WHERE (ConditionA LIKE '%qualifier%' OR Condition B LIKE '%qualifier%')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND ConditionC = 'False'&lt;/P&gt;&lt;P&gt;GROUP BY Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This query counts the number of instances where the conditions are true and finds the most recent occurrence where they were all true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlik Sense, it seems like the best way to go about this would be through set analysis, but I can't get the syntax to work.&lt;/P&gt;&lt;P&gt;I am unable to get wildcards or wildmatch to work in set analysis and have no idea how to use set analysis to get a max(date) calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not married to set analysis if an if statement or other solution would work better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 21:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-max-date-using-wildcard-and-set-analysis/m-p/52037#M3483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-17T21:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date using wildcard and set analysis?</title>
      <link>https://community.qlik.com/t5/App-Development/Get-max-date-using-wildcard-and-set-analysis/m-p/52038#M3484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max({&amp;lt;ConditionA = {"*qualifier*"}, ConditionC = {'False'}&amp;gt;+&amp;lt;ConditionB = {"*qualifier*"}, ConditionC = {'False'}&amp;gt;}Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 21:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-max-date-using-wildcard-and-set-analysis/m-p/52038#M3484</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-17T21:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date using wildcard and set analysis?</title>
      <link>https://community.qlik.com/t5/App-Development/Get-max-date-using-wildcard-and-set-analysis/m-p/52039#M3485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, you are a wizard!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 21:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-max-date-using-wildcard-and-set-analysis/m-p/52039#M3485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-17T21:44:17Z</dc:date>
    </item>
  </channel>
</rss>

