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?
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.
- Anonymous6 years agoNot applicable
Thanks very much! This seems to be doing the trick!
I do have an error message for two of the columns though:
DataSource.Error: Microsoft SQL: The type of column "txtWithdrawnDate" conflicts with the type of other columns specified in the UNPIVOT list.
Details:
DataSourceKind=SQL
DataSourcePath=xxx
Message=The type of column "txtWithdrawnDate" conflicts with the type of other columns specified in the UNPIVOT list.
Number=8167
Class=16I have checked that the column type is Date/Time which it is. Do you know how I could solve this?
Many thanks, much appreciated!