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
brceliolu
New Member

How to create a slicer the start/end TIME?

Hello, colleagues!
Hope you are well.

 

I'm struggling to create a slicer for time on Power BI.
I have a table with the Start Time and the End Time for each item.
I would like to create a slicer/filter where people could indicate the start time and the end time and power BI will filter the items on the table.

My table:

id | starttime | endtime 
3  | 4:30 AM   | 6:46 AM 
1  | 12:01 AM | 3:37 AM 
4  | 12:10 PM | 12:52 PM 
5  | 12:10 PM | 12:41 PM 
6  | 12:10 PM | 12:49 PM 
7  | 12:10 PM | 1:00 PM 

Example if I select 12:00 PM as start time and 01:00PM as end time it should show me the items 4,5,6 and 7.
I've tried using the slicer, however looks like the option "between" only works with Dates.

Can someone help me?

2 ACCEPTED SOLUTIONS
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

https://1drv.ms/u/s!AiUZ0Ws7G26RiFbifN58ZozX2sVB?e=5wVS3B

Screen Capture #1217.png

 

View solution in original post

Ritaf1983
Super User
Super User

Hi @brceliolu 
Start time and End time are split into 2 columns, so if you need to filter data based on the slot between the start date and end date you need 2 slicers one for each column:

Ritaf1983_0-1686020334538.png

The slicers should be drop-down lists.

Link to a sample file 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @brceliolu 
Start time and End time are split into 2 columns, so if you need to filter data based on the slot between the start date and end date you need 2 slicers one for each column:

Ritaf1983_0-1686020334538.png

The slicers should be drop-down lists.

Link to a sample file 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

https://1drv.ms/u/s!AiUZ0Ws7G26RiFbifN58ZozX2sVB?e=5wVS3B

Screen Capture #1217.png

 

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.