Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Didi420
Contributor
Contributor

Grid chart dimension has duplicate date values

I want to display count of ID's by groups and months using grid chart.
For some reason, grid chart has duplicate month values as such:

Didi420_0-1659538530790.png

Obviously it'd make more sense if there would be one row of September, October etc., but they're duplicating without any apparent reason. Same happens with year field.

My date fields in data load editor looks like that:

Date(Date#(Date, 'MMMM DD, YYYY'),'MMMM') AS Month,
Date(Date#(Date, 'MMMM DD, YYYY'),'YYYY') AS Year

 

thanks in advance

Labels (2)
1 Solution

Accepted Solutions
Or
MVP
MVP

Your issue has nothing to do with the grid chart, but rather with using the wrong date function for the job. If you'd like to extract the month from a date, use MonthName() (or YearName() / Year() for the year). Date() does not change the underlying value, it only formats it in a specific manner, so in this case 01/01/2022 and 02/02/2022 would remain individual values when you use Date(Date,'YYYY') but would display 2022 in both cases.

View solution in original post

1 Reply
Or
MVP
MVP

Your issue has nothing to do with the grid chart, but rather with using the wrong date function for the job. If you'd like to extract the month from a date, use MonthName() (or YearName() / Year() for the year). Date() does not change the underlying value, it only formats it in a specific manner, so in this case 01/01/2022 and 02/02/2022 would remain individual values when you use Date(Date,'YYYY') but would display 2022 in both cases.