I have a data set that has a date field called "weekEnding" for every record in the data set. I want to use that date as a filter but I am having some issues with how to do this. In my Load script I added a dimension called "yearMonth" that I created from the "weekEnding" field. When I add the filter to the sheet I get a "yearMonth" for every record.
Is there a way I can make that filter distinct?
This is my load script.
Date(weekEnding,'YYYY-MM') as yearMonth,
(ooxml, embedded labels, table is qryDriverScorecardByWeek);
I did not add just the date function, I added the MonthStart. The issue is that date is just a formatting function and doesn't really remove the day just because it formatted it YYYY-MM. It would still repeat for each day (and time if weekEnding is a timestamp). To get rid of all extra things, I just made all the dates 1st of the month using MonthStart and then assign them your required date format using Date() function.