Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis date comparator: HELP!

Hi all,

I post my document:

why

DISPOSIZIONI.DatOpe

={"<=$(Date(DFineStat,'DD/MM/YYYY'))"}





doesn't work?

Anyone has a good idea?

Thanks a lot!

1 Solution

Accepted Solutions
Not applicable
Author

Here are the expression

count({$<[DISPOSIZIONI.DISP_COD_CAU]={'SO'}, [DISPOSIZIONI.DatOpe]={"<=$(=addmonths(DFineStat,0))"}>} Distinct [DISPOSIZIONI.DISP_NUM_OPE])

View solution in original post

10 Replies
Not applicable
Author

Hi Roberta,

it seems that you missed DISTINCT in your expression.

Rainer

Not applicable
Author

Hi Rainer!

I think it's not a problem : using distinct reduce the count result, but set analysis expression still does not work....

Thanks anyway!

Not applicable
Author

Roberta,

don´t give up ...

Hope the result is correct now.

Rainer

Not applicable
Author

Attachment was missing ...

Not applicable
Author

Here are the expression

count({$<[DISPOSIZIONI.DISP_COD_CAU]={'SO'}, [DISPOSIZIONI.DatOpe]={"<=$(=addmonths(DFineStat,0))"}>} Distinct [DISPOSIZIONI.DISP_NUM_OPE])

Not applicable
Author

Here are the expression

count({$<[DISPOSIZIONI.DISP_COD_CAU]={'SO'}, [DISPOSIZIONI.DatOpe]={"<=$(=addmonths(DFineStat,0))"}>} Distinct [DISPOSIZIONI.DISP_NUM_OPE])

Not applicable
Author

the attachement.

Not applicable
Author

Thanks Rainer ,it's working now!

But I don't understand why needs to use addMonths....Can you explain me the reason?

Thanks a lot!

Bye

Roberta

Not applicable
Author

Good morning Roberta,

the reason to use AddMonth was: formatting using the date function did not work in the way we used it.

I will have look in an older application. So far I remember there is a SetAnalysis expression in it using TimeStamp format.

I´ll let you know if I have something figured out.

Rainer