Trying to make a date slicer which includes both date and time

  • Trying to make a date slicer which includes both date and time

    Posted by DSC Communities on July 2, 2022 at 4:25 pm
    • Stephen Simpson

      Member

      July 2, 2022 at 4:25 PM

      Hi,

      I have a table of a great many datetime, data_point_name, value triplets from process probe sensors.Ā 

      • I want to have a slicer which I can use to pick from time1 on day 1 to time2 on day 2
      • So my approach has been to have three slicersĀ  Ā [Time Start] [Date Slicer] [Time End].Ā  Ā I have the data table and two time tables in 30 minute intervals so I have been able to create measures and display cards to show on the report the start and stop datetime combo.
      • I try to combine all this into a new table using DAX which filters the data table using the measures that I have but have not had any success.

      Does anyone how how to set up a slicer or set of slicers so I can filter my report (for example), from 2022-Jun-15 at 4:30 PM to 2022-Jun-18 at 10:00 AM?

      Ā 

      I am just learning about DAX.Ā  I have spent a few hours at this with no success.

      Ā 

      Thanks

      ——————————
      Stephen Simpson
      ——————————

    • Rebekah Alexander

      Member

      July 4, 2022 at 4:36 AM

      As you haven’t received any good solution yet…..I can offer you a bit of a messy solution?

      It’s putting the Date and Time columns in the same hierarchy slicer and setting it as drop down.Ā 
      Its a bit of a pain, but you can at least click your way to the desired time frame.Ā 

      The sum of events is justĀ 

      SumEvents = SUMX('Table','Table'[Event])

      The earliest DateTimeStamp and latest DateTime stamp, you can either set in your visual, or you could add measures

      StartTime = MIN('Table'[DateTimeStamp])
      EndTime = MAX('Table'[DateTimeStamp])

      ——————————
      Rebekah Alexander
      Data Analyst
      ——————————
      ——————————————-

    DSC Communities replied 3 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Trying to make a date slicer which includes both date and time’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!