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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jinma78
Advocate II
Advocate II

datetime slicer

I am looking to do a start and end datetime filter for my powerbi report but this is not as straight forward as I would have thought.  Basically, I just need to provide start date with start time in hours:min:sec and do the same for the end date.  The result of this should filter a table which has a column "datetime" type.  Anyone can suggest how this can be acheived?  I couldn't use the date slicer, but it only has date but no time.  I tried to add individual drop down selection for hh:mm:ss but ran into issue with using start and end datetime as range filter.  I would appreciate a detail explanation on how this can be accomplished.  Thank you in advance.

2 REPLIES 2
v-jiascu-msft
Employee
Employee

Hi @jinma78,

 

There could be a solution and a workaround. Please download the demo from the attachment.

1. Using the custom visual "Time Brush".

2. Add a column and convert the datetime to seconds. Finally, you can use range slicer.

Duration.TotalSeconds([DateTime] - #datetime(1970, 1, 1, 0, 0, 0))

datetime-slicer

 

datetime-slicer2

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This is not exactly what I was looking for as I need the user to be able to select date with hh:mm time resolution and specify start and end datetime.  something like this https://powerusers.microsoft.com/t5/General-Discussion/Date-Time-Picker-Missing-Time/td-p/49940

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors