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
pokdbz
Helper II
Helper II

Slicer/Filter between 2 dates with times

How to create selectable Slicers/Filters between 2 dates with times.

In the database there is only one field as a DateTime that I need to filter on.

 

Example

3/1/2019 6:00:00 AM - 3/2/2019 5:59 AM

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

 

This will require transformations in the Query Editor.  Share the data in a format which can be pasted in MS Excel.  Also, do you need the time stamp or can that be removed?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur 

 

This is the way the data looks.  I need to create slicers/filters on the report that will get me the data between 2 dates including the time

3/1/2019 6:00:00 AM - 3/2/2019 7:00:00 AM

From the data below this would return 14 Rows

 

3/1/2019 4:00:00 AM
3/1/2019 5:00:00 AM
3/1/2019 6:00:00 AM
3/1/2019 7:00:00 AM
3/1/2019 8:00:00 AM
3/1/2019 9:00:00 AM
3/1/2019 10:00:00 AM
3/1/2019 11:00:00 AM
3/1/2019 12:00:00 PM
3/1/2019 1:00:00 PM
3/1/2019 2:00:00 PM
3/1/2019 3:00:00 PM
3/1/2019 4:00:00 PM
3/1/2019 5:00:00 PM
3/2/2019 6:00:00 AM
3/2/2019 7:00:00 AM
3/2/2019 8:00:00 AM
3/2/2019 9:00:00 AM
3/2/2019 10:00:00 AM
3/2/2019 11:00:00 AM

 

Hi,

 

So, you want to create 2 slicer, one for date and another for time?  Am i correct?  Also, if the time is from 6:00 AM to 7:00 AM then why should the time stamp for 3/1/2019 start from 4:00 AM and why should it stop at 5:00 PM?  Just not clear.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.