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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Want YTD on selected date

Hello,

           i want YTD to be calculated on Selected date by user.

for example if user select date 15 feb 2009

user should get sales of from 1 jan 2009 to 15 feb 2009

how to do it?

thanks

Harlin

Labels (1)
11 Replies
Not applicable
Author

See that there is not control of the year...

Stefano

Not applicable
Author

Hello

finally this worked

=Sum({$<Year = {$(=max(Year))}, Month={"<=$(=max({<Year={$(=max(Year))}>} Month))"},OrderDay={"<=$(=max(OrderDay))"}>} Value)

thanks Stefano for the response

my date is formated in M/D/YYY format.

thanks

Harleen Singh