Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart - Month/Year to date

Hi,

How do I make my chart only show data up until todays date for previouse years?

I have tried doing it as an Expresstion like this:

Count ({<YEAR={$(vPreviousYear-1)},MONTH={'<=$(vMonth)'},DATE={'<=$(vToday)'}>}DATA)

But the result it the date is set as max in very month. So today it will only show up until todays date in all the present month also.

But I what the full data shown in the past months, and only month-to-date i present month.

12 Replies
jmvilaplanap
Specialist
Specialist

I going to try to explain it without variables

Try with this, this must to work

Count ({<YEAR={$(=Year(Today()))},MONTH={'$(=Month(Today()))'},DAY={"<=$(=Day(Today()))"}>}DATA)

Not applicable
Author

This are getting me the result of the 1th until today in every month. How do I get the full month in all the previouse months?

jmvilaplanap
Specialist
Specialist

With this you will have a "Year to Date"

Count ({<YEAR={$(=Year(Today()))},DATE={"<=$(=(Today())"}>}DATA)