Tableau: Have fixed weekday names (Sunday to Saturday) as columns

假装没事ソ 提交于 2019-12-12 02:34:12

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!