<?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 with Dates and Texts criteria in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-with-Dates-and-Texts-criteria/m-p/1576722#M597553</link>
    <description>&lt;P&gt;The LHS of a set expression clause must be a physical field name, so your requirement cannot be implemented purely in a set expression. You could do this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;COUNT({$&amp;lt;
	GR_MERCADO_2={'Bradesco'}, 
	UF_LICENCIAMENTO={'SP', 'PE', 'SC'}, 
	ANO_EMISSAO_DOC = {"*"}
&amp;gt;} If(MakeDate(ANO, MES, DIA) &amp;gt;= Date#('01/05/2018'), [CHASSI/SEQ]))&lt;/LI-CODE&gt;&lt;P&gt;Or define a new field with the MakeDate() expression in your load script, and then add the new field criterion to the set expression.&amp;nbsp; Something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DateNew = {"&amp;gt;=$(=Date#('01/05/2018'))"}&lt;/LI-CODE&gt;&lt;P&gt;(the exact syntax depends on your default date format)&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2019 05:50:14 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2019-05-06T05:50:14Z</dc:date>
    <item>
      <title>Expression with Dates and Texts criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-Dates-and-Texts-criteria/m-p/1576504#M597551</link>
      <description>&lt;P&gt;Guys, good afternoon,&lt;/P&gt;&lt;P&gt;I am trying to create an expression that perform the counting of a field by applying multiple criteria in other fields. The Criteria Are:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GR_MERCADO_2&lt;/STRONG&gt;={‘Bradesco’}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UF_LICENCIAMENTO&lt;/STRONG&gt;={‘SP’, ‘PE’, ‘SC’}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOT IsNull&lt;/STRONG&gt;(ANO_EMISSAO_DOC)&lt;/P&gt;&lt;P&gt;Date(MakeDate(ANO, MES, DIA), 'DD/MM/YYYY') &amp;gt;= 01/05/2018 **&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;My Expression is not working:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;GR_MERCADO_2={'Bradesco'}, UF_LICENCIAMENTO={'SP', 'PE', 'SC'}, NOT IsNull(ANO_EMISSAO_DOC), Date(MakeDate(ANO, MES, DIA), 'DD/MM/YYYY') &amp;gt;= 01/05/2018&amp;gt;}[CHASSI/SEQ])&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;** I need to mount the date because the base does not have a unified date field&lt;/P&gt;&lt;P&gt;Can you give me a direction?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-Dates-and-Texts-criteria/m-p/1576504#M597551</guid>
      <dc:creator>rafaeloneil</dc:creator>
      <dc:date>2024-11-16T03:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with Dates and Texts criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-Dates-and-Texts-criteria/m-p/1576694#M597552</link>
      <description>Inside the Set Analysis { }, you can define fields, but not the other criteria. Could you find another criteria for the ANO_EMISSAO_DOC field (&amp;gt;0)?  &lt;BR /&gt;</description>
      <pubDate>Mon, 06 May 2019 01:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-Dates-and-Texts-criteria/m-p/1576694#M597552</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-05-06T01:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with Dates and Texts criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-Dates-and-Texts-criteria/m-p/1576722#M597553</link>
      <description>&lt;P&gt;The LHS of a set expression clause must be a physical field name, so your requirement cannot be implemented purely in a set expression. You could do this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;COUNT({$&amp;lt;
	GR_MERCADO_2={'Bradesco'}, 
	UF_LICENCIAMENTO={'SP', 'PE', 'SC'}, 
	ANO_EMISSAO_DOC = {"*"}
&amp;gt;} If(MakeDate(ANO, MES, DIA) &amp;gt;= Date#('01/05/2018'), [CHASSI/SEQ]))&lt;/LI-CODE&gt;&lt;P&gt;Or define a new field with the MakeDate() expression in your load script, and then add the new field criterion to the set expression.&amp;nbsp; Something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DateNew = {"&amp;gt;=$(=Date#('01/05/2018'))"}&lt;/LI-CODE&gt;&lt;P&gt;(the exact syntax depends on your default date format)&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 05:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-Dates-and-Texts-criteria/m-p/1576722#M597553</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-05-06T05:50:14Z</dc:date>
    </item>
  </channel>
</rss>

