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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Function within a set analysis expression

Hi,

I want to be able to print total number of IDs my table for the latest month.

To retrieve the latest month I use MaxString([CreationDate]) which gives me the correct month in format '2012-03'.

When I try to use it in my set analysis expression it does not work, it comes out null:

(This is put in a texbox)

=count( {$<CreationDate = {$(=MaxString(CreationDate))} >} [E_ID]);

I can use the following expression and it works:

=count( {$<CreationDate = {'2012-03'} >} [E_ID]);

I'm pretty sure I just dont know the syntax...

Regards

Mikael

1 Solution

Accepted Solutions
rajni_batra
Specialist
Specialist

=count( {$<CreationDate = {"$(=MaxString(CreationDate))"} >} [E_ID]);

or u can store maxstring(date) in a variable and use that variable, that can also help u

View solution in original post

2 Replies
rajni_batra
Specialist
Specialist

=count( {$<CreationDate = {"$(=MaxString(CreationDate))"} >} [E_ID]);

or u can store maxstring(date) in a variable and use that variable, that can also help u

Not applicable
Author

Thank you!