Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PowerBI-ELM
Helper I
Helper I

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

Hi,

I have a table of many datetime datapointname 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 sucess.

 

Thanks

1 ACCEPTED SOLUTION
PowerBI-ELM
Helper I
Helper I

While I don't mind anyone's comments on how to accomplish building a date/time slicer which might go from half way through another day I would like to report that I found an elegant alternative.

 

My data has a date and time stamp and a data_point_id  and a value.   I wanted to slice/filter so the user can filter by time from one point on day A to another time on day B.   I have a bad habit of doubling down trying to solve a problem with little latteral thinking

 

Then I realized that every record also has a unique record id (big integer) which goes up with time.  So I set the splitter to that and made some measures and card visuals to get the min and max datetime

 

It only needs one splitter (instead of two or three) and looks good to the user

 

 

 

 

 

View solution in original post

2 REPLIES 2
PowerBI-ELM
Helper I
Helper I

While I don't mind anyone's comments on how to accomplish building a date/time slicer which might go from half way through another day I would like to report that I found an elegant alternative.

 

My data has a date and time stamp and a data_point_id  and a value.   I wanted to slice/filter so the user can filter by time from one point on day A to another time on day B.   I have a bad habit of doubling down trying to solve a problem with little latteral thinking

 

Then I realized that every record also has a unique record id (big integer) which goes up with time.  So I set the splitter to that and made some measures and card visuals to get the min and max datetime

 

It only needs one splitter (instead of two or three) and looks good to the user

 

 

 

 

 

Hi, @PowerBI-ELM 

Glad you found a workaround and shared it here.

It will help other community members easily find solutions when they encounter similar problems.

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.