Forum Discussion
Slicer - Date and Time
Struggling with a slicer issue, my data has a date and time stamp in the format "mm/dd/yyyy hh:mm AM" in my query editor, have have split the column to "mm/dd/yyyy" and "hh:mm AM" , so far so good. The data types are defined as "date" and "time"
In my report I have applied a date slicer which works perfectly, however my time slicer returns a date format in mm/dd/yyyy as opposed to hh:mm AM, so despite the data being collected and time stamped in the last 72 hours, the time slice is showing 12/30/1899........
Any ideas would be gratefully received.
Thanks in advance
Stoo48You know I never switched the Slicer in my testing from List to any of the Before, Between and After Options!
It seems when you place a TIME column in the Slicer you can only use the List or Dropdown Options
I believe the others are only meant to be used with DATES
So there's not really an issue with the Data Type and Format!
>>> The issue seems to be with Slicer's Before, Between and After options not working with TIME Columns! <<<
Checkout this blog by heathernicole dbadmin
She discussed the Advanced Time Slicer
Good Luck! :smileyhappy:
Sorry that's probably not the answer you were we looking for.
You can report this as an ISSUE here
13 Replies
- SeanCommunity Champion
Check in the Modeling Tab (not in the Query Editor since you've already set it there)
What is the DATA TYPE and FORMAT set in the Modeling tab?
- Stoo48Frequent Visitor
Sean
Just checked, as the Query Editor, they are both showing correct TYPE and FORMAT in the modelling tab as I described above
- SeanCommunity Champion
When you Import that column in the Query Editor (the original Date/Time column before you split it)
Does it default to Date/Time or Text?
Inside the column are the numbers left justified or right justified when you first import it?
And same for the 2 columns that you split the original into
Do they default to their appropriate Data Type in the Query Editor?
OR
Do you have to manually set the Data Types?
EDIT: Are you running the latest release?
https://www.microsoft.com/en-us/download/details.aspx?id=45331
- padeAdvocate III
Stoo48This is possible, but not with the on-canvas filters.
Using the Visual Level Filter, page Level Filter and/or Report Level Filters to the right of the canvas you can get this to work. Don't understand though why not implemented directly in the visual filters.
And as the Visual Level Filter are not visable when the report is published, and at the same time as the visual Level Filter is the only filter that accepts a measure, you will need to materialize the date and time combination in a column before beeing able to filter on the date and time combination