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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors