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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
eddyg
Contributor
Contributor

Count if equal to expression

Is it possible to replace the static date value in the following formula with a dynamic expression that computes the max date?

count({<date={'2022-03-01'}>} order)

here is the expression to get max date: Date(max(date),'yyyy-MM-dd')

Labels (3)
1 Reply
MartW
Partner - Specialist
Partner - Specialist

yes,

you can use something like count({<date={"$(=max(date))"}>} order)

this replaces the static value of 2022-03-01 to the max date value in your model

 

 

if this worked please accept this answer as the solution and give it a like