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: 
Not applicable

YTD View

Hi, all,

I'm trying to generate a YTD view on a certain metric, but the coding that I am using isn't working for some reason. I can't spot any syntax errors...

The code structure that I have been playing with is as follows:

(sum({<Month_Start={">=$(=Date(addmonths(Max(Month_Start), -(Num(Month)-1)), 'MMM-YYYY' ))<=$(=Date(addmonths(Max(Month_Start),0), 'MMM-YYYY')) "}>} [FIELD NAME])

Help???

Labels (1)
1 Solution

Accepted Solutions
pover
Partner - Master
Partner - Master

I think the formula would be a little easier it is was something like below:

sum({<Month_Start={"<=$(=Max(Month_Start)) "},Year={$(=max(Year))}>} [FIELD NAME])

Karl

View solution in original post

1 Reply
pover
Partner - Master
Partner - Master

I think the formula would be a little easier it is was something like below:

sum({<Month_Start={"<=$(=Max(Month_Start)) "},Year={$(=max(Year))}>} [FIELD NAME])

Karl