Forum Discussion

Stoo48's avatar
Stoo48
Frequent Visitor
9 years ago
Solved

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

13 Replies

  • Sean's avatar
    Sean
    Community 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?

    • Stoo48's avatar
      Stoo48
      Frequent Visitor

      Sean

       

      Just checked, as the Query Editor, they are both showing correct TYPE and FORMAT in the modelling tab as I described above

       

       

       

       

      • Sean's avatar
        Sean
        Community 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

  • pade's avatar
    pade
    Advocate 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