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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
VVJ
Contributor II
Contributor II

MTD function in set analysis

Hi,

I'm trying to calculate the sum of sales for a particular month (month start to max date). I'm using the following syntax but not able to get the desired output.

sum({<day={">=(=monthstart($("vmaxdate")))<=($("vmaxdate"))}>}sales)

vmaxdate is a variable where I have declared the max(day).

Please help to resolve this.

Labels (2)
2 Replies
Somasundaram
Creator III
Creator III

Try this,

sum({<day={">=(=monthstart($("vmaxdate")))<=($("vmaxdate"))"}>}sales)

-Somasundaram

If this resolves your Query please like and accept this as an answer.
hemachandran
Partner - Creator
Partner - Creator

Hi,
Please try this
sum({<day={">=(=monthstart($("vmaxdate")))<=(=$("vmaxdate"))}>}sales)