Forum Discussion
Single Date Slicer for Multiple Dates on Visual
- 6 years ago
Anonymous this is what you need to do, which will take care of everything.
Unpivot your table, in query editor, select your school column and right click, and select upivot other columns
It will add two column, one attribute which will be your category and other column value which will be your dates
Apply the changes, add calendar dimension in your model (many blog posts are there).
On bar chart, use date/month/year on x-axis from calendar table, legend will be your attribute and value will be count of rows from your table.
Now you can slicer and dice the data by date or by category.
sounds like you need to related a date/time table for each of your dates and then a master date/time table related to each one of those date/time tables. Then you set your slicer on the month field of the master time table and use that month in the visualization.
Wouldn't that work?
whoops. You can't have more than one active relationship on a field. So the unpivot method suggested by the other posters is the correct solution.