Skip to main content
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 (3)
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)