<?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: Greater than in set analysis in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544533#M12575</link>
    <description>&lt;P&gt;The results are just 0 or -.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expected results are 2,1,3,2,9....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both fields come from database and are in format YYYY-MM-DD (Sample:&amp;nbsp; 14/02/2019)&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2019 18:07:15 GMT</pubDate>
    <dc:creator>thiago_alessand</dc:creator>
    <dc:date>2019-02-14T18:07:15Z</dc:date>
    <item>
      <title>Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544519#M12568</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use greater than signals with 2 date fields, in set analysis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried, but not working:&lt;/P&gt;&lt;PRE&gt;COUNT({&amp;lt;DataAtendimentoChamadoAtrasadoTI = {"&amp;gt;DataPrazoChamadoAtrasadoTI"}&amp;gt;}NumChamadoAtrasadoTI)&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544519#M12568</guid>
      <dc:creator>thiago_alessand</dc:creator>
      <dc:date>2024-11-16T06:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544524#M12569</link>
      <description>&lt;P&gt;Tenta da seguinte forma:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;COUNT({&amp;lt;DataAtendimentoChamadoAtrasadoTI = &lt;BR /&gt;{"&amp;gt;=$(=Min(DataPrazoChamadoAtrasadoTI))&amp;lt;=$(=Max(DataPrazoChamadoAtrasadoTI))"}&amp;gt;}NumChamadoAtrasadoTI)&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Feb 2019 17:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544524#M12569</guid>
      <dc:creator>elvis_schwarz</dc:creator>
      <dc:date>2019-02-14T17:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544525#M12570</link>
      <description>&lt;PRE&gt;try the below

if(DataAtendimentoChamadoAtrasadoTI  &amp;gt; DataPrazoChamadoAtrasadoTI , COUNT(NumChamadoAtrasadoTI)
)&lt;/PRE&gt;&lt;P&gt;I hope you are using it in a table or simillar&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 17:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544525#M12570</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-14T17:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544526#M12571</link>
      <description>&lt;P&gt;If you could tell us something about it, it would be easier to help as the expression may vary according to that.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 17:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544526#M12571</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-14T17:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544528#M12572</link>
      <description>&lt;P&gt;Obrigado pelo retorno. Trouxe apenas valor 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 17:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544528#M12572</guid>
      <dc:creator>thiago_alessand</dc:creator>
      <dc:date>2019-02-14T17:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544530#M12573</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;But, isn't working. I'm using in normal table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results was for all columns: "-"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 17:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544530#M12573</guid>
      <dc:creator>thiago_alessand</dc:creator>
      <dc:date>2019-02-14T17:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544532#M12574</link>
      <description>Can you add some sample data and the output you are expecting.</description>
      <pubDate>Thu, 14 Feb 2019 18:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544532#M12574</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-14T18:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544533#M12575</link>
      <description>&lt;P&gt;The results are just 0 or -.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expected results are 2,1,3,2,9....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both fields come from database and are in format YYYY-MM-DD (Sample:&amp;nbsp; 14/02/2019)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 18:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544533#M12575</guid>
      <dc:creator>thiago_alessand</dc:creator>
      <dc:date>2019-02-14T18:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544537#M12577</link>
      <description>Well.. I am not seeing any data so this won't make much sense to me. If you can add a few lines of input data and the output , it would be easier.</description>
      <pubDate>Thu, 14 Feb 2019 18:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544537#M12577</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-14T18:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544543#M12578</link>
      <description>&lt;P&gt;There may be something stange in this code, but is because I already tried sometimes without success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ChamadosAtrasadosTI:
Load
	num_chamado,
    data_abertura,
	categoria,
//    prazo,
    MAKEDATE(YEAR(prazo),MONTH(prazo),DAY(prazo)) AS prazo,
    hora_prazo,
    data_conclusao,
    //data_atendido,
    MAKEDATE(YEAR(data_atendido),MONTH(data_atendido),DAY(data_atendido)) AS data_atendido,
    //dataAtendimento,
    MAKEDATE(YEAR(dataAtendimento),MONTH(dataAtendimento),DAY(dataAtendimento)) AS dataAtendimento,
    horaAtendimento,
    prioridade,
    autor_chamado,
    status,
    dataPrazo;
    

SQL SELECT c.num_chamado, c.data_abertura, c.categoria, (SELECT STR_TO_DATE(prazo, '%d/%m/%Y') FROM complemento WHERE num_chamado = c.num_chamado and prazo is not null 
ORDER BY id_complemento DESC LIMIT 1) AS prazo, (SELECT hora_prazo FROM complemento WHERE num_chamado = c.num_chamado and hora_prazo is not null
ORDER BY id_complemento DESC LIMIT 1) AS hora_prazo, c.data_conclusao,c.data_atendido, DATE(data_atendido) AS dataAtendimento, TIME(data_atendido) AS horaAtendimento,
c.prioridade, c.autor_chamado, c.status, CAST(CONCAT(prazo, ' ', hora_prazo) AS datetime) AS dataPrazo
FROM chamado AS c 
WHERE //DATE(data_atendido) &amp;gt; prazo OR  ( DATE(data_atendido) = prazo and TIME(data_atendido) &amp;gt; hora_prazo)
YEAR(data_abertura) = $(vrAno);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 18:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544543#M12578</guid>
      <dc:creator>thiago_alessand</dc:creator>
      <dc:date>2019-02-14T18:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544723#M12587</link>
      <description>Dear Thiago,&lt;BR /&gt;TRY this&lt;BR /&gt;COUNT({&amp;lt;Date_field_on-which-filter-is-to-be-applied=&lt;BR /&gt;{"&amp;gt;=$(=Min(Datefield))&amp;lt;=$(=Max(Datefield))"}&amp;gt;}NumChamadoAtrasadoTI)&lt;BR /&gt;&lt;BR /&gt;check the date format is same when MIN and MAX Function is applied on datefield sometimes it is different from "Date_field_on-which-filter-is-to-be-applied" that is why you can't find the correct data.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Akhilesh</description>
      <pubDate>Fri, 15 Feb 2019 06:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544723#M12587</guid>
      <dc:creator>akhi9219</dc:creator>
      <dc:date>2019-02-15T06:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Greater than in set analysis</title>
      <link>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544757#M12589</link>
      <description>&lt;P&gt;NO, don't replace a set analysis with if-statements!&lt;BR /&gt;The set analysis is executed once before rendering visualization.&lt;BR /&gt;If-statement is executed on every data row for every presentation row in your visualization.&lt;BR /&gt;The degradation of performance can be horrifying.&lt;/P&gt;&lt;P&gt;To use dates in set analysis you must use the text representation of the date.&lt;BR /&gt;Something like;&lt;/P&gt;&lt;PRE&gt;COUNT({&amp;lt;DataAtendimentoChamadoAtrasadoTI = {"&amp;gt;$(=Text(Date(DataPrazoChamadoAtrasadoTI)))"}&amp;gt;} NumChamadoAtrasadoTI)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 07:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Greater-than-in-set-analysis/m-p/1544757#M12589</guid>
      <dc:creator>Anders_Eriksson</dc:creator>
      <dc:date>2019-02-15T07:21:18Z</dc:date>
    </item>
  </channel>
</rss>

