问题
Below is the sample data:
I am trying to build a single combo bar chart representing number of orders booked, shipped, and delivered on a given day of week (Sunday through Saturday). For ex: August 1 was a Monday: Booked-4, Shipped - 2, Delivered - 1 should be the three columns and so on.
I am using DATEDIFF and time based filters to count the distinct orders. The issue that I am having is that I cant use WEEKDAY function corresponding to any particular date i.e. Booked, Shipped, Delivered as it messes up the count. I want to use fixed values for weekdays as columns. Is it possible? Thanks in advance!
回答1:
Based on your sample data, you can PIVOT it in the data window so all the dates are in one column. With that done, it would be simple to create what you're describing.
See attached sample workbook. https://dl.dropboxusercontent.com/u/60455118/160810%20stack%20question.twbx
来源:https://stackoverflow.com/questions/38863197/tableau-have-fixed-weekday-names-sunday-to-saturday-as-columns