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

Line Graph per MM/YYYY

Dear All,

I´m trying to create a line graph that shows a SUM pre month/year. The main problem is that I have different days in a base and the dimension "date([datefiled],'MM/YYYY')" is returning more than one register per month/year.

The expression is a simple SUM([value field])

Please let me know how I can solve it.

Thanks in advance.

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

The date() function does not remove the day value from datefield, it simply formats the display into (in your case) MM/YYYY format. To remove the day value and have only one dimension value per month, you can use:

Date(MonthStart(datefield), 'MM/YYYY')

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

The date() function does not remove the day value from datefield, it simply formats the display into (in your case) MM/YYYY format. To remove the day value and have only one dimension value per month, you can use:

Date(MonthStart(datefield), 'MM/YYYY')

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Thanks Jonathan,

Working well !