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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Issue with date?

I have dates in text format . Field name is ProjectMonth with values starting Dec-2015 till Nov-2015.

I want to plot a graph that shows the sum of efforts for the months less than the current month. Hence when I try to put an expression as monthname(date#(ProjectMonth,'MM-YYYY'))<=monthname(today()) to calculate the effort for the months less than the current month I am not getting values..Cell values appear blank.

can you anybody please let me know what is going wrong in my expression?

thanks


1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Sanjyot,

Use proper date function. It should be

=monthname(date#(ProjectMonth,'MMM-YYYY'))<=monthname(today())

View solution in original post

3 Replies
tamilarasu
Champion
Champion

Hi Sanjyot,

Use proper date function. It should be

=monthname(date#(ProjectMonth,'MMM-YYYY'))<=monthname(today())

Anonymous
Not applicable
Author

You can use sth like this:

=sum({<ProjectMonth={'>=$(=date(monthname(ProjectMonth),'MM-YYYY')'<=date(monthname(today()),'MM-YYYY') }>} Effort)

Anonymous
Not applicable
Author

or simply:

=sum({<ProjectMonth={'<=date(monthname(today()),'MM-YYYY') }>} Effort)