Tableau filter to find Weekend or Weekday
Create a calculated field using the date field with the case statement as shown below:
CASE DATEPART('weekday',[Report Date])
WHEN 1 THEN 'Weekend'
WHEN 2 THEN 'Weekday'
WHEN 3 THEN 'Weekday'
WHEN 4 THEN 'Weekday'
WHEN 5 THEN 'Weekday'
WHEN 6 THEN 'Weekday'
WHEN 7 THEN 'Weekend'
END
Then drag this new dimension into filters pane and show filter.
You can select the Weekend or Weekday option in the filter so that the data in the sheet which has the date field will change accordingly.
Comments
Post a Comment