Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
thiago_alessand
Contributor III
Contributor III

Greater than in set analysis

Hello,

 

How can I use greater than signals with 2 date fields, in set analysis?

 

I tried, but not working:

COUNT({<DataAtendimentoChamadoAtrasadoTI = {">DataPrazoChamadoAtrasadoTI"}>}NumChamadoAtrasadoTI)
Labels (2)
11 Replies
akhi9219
Contributor
Contributor

Dear Thiago,
TRY this
COUNT({<Date_field_on-which-filter-is-to-be-applied=
{">=$(=Min(Datefield))<=$(=Max(Datefield))"}>}NumChamadoAtrasadoTI)

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.

Regards,
Akhilesh
Akhilesh Yadav
Qlik Developer
Mumbai
anderseriksson
Partner - Specialist
Partner - Specialist

NO, don't replace a set analysis with if-statements!
The set analysis is executed once before rendering visualization.
If-statement is executed on every data row for every presentation row in your visualization.
The degradation of performance can be horrifying.

To use dates in set analysis you must use the text representation of the date.
Something like;

COUNT({<DataAtendimentoChamadoAtrasadoTI = {">$(=Text(Date(DataPrazoChamadoAtrasadoTI)))"}>} NumChamadoAtrasadoTI)