cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nicki Helper I
Helper I

Datetime slicer

Hi ,

If we want to filter data  between  05/01/2019  01:20:50 AM  to  05/26/2019 10:10:30 PM,

there is no slicer except list and drop down and It is very hard to select a time.

I come up with this idea,  slicer "between"  for date. Then I added  add 4 "parameter if " to the page to have Start time ( Hours / Minutes) and End Time (Hours/ Minutes). Next I created a filter for datetime and after that added to visual filter because they are measures.

It is very complex soultion.

Is there any way that I can have datetime format slicer and I can use them to report filter?

Or any thought. Thank you in advacne.

 

Nicki

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Nicki Helper I
Helper I

Re: Datetime slicer

Thanks.

I have lots of charts and do not want to add to each visual chart.

 

Nicki

View solution in original post

6 REPLIES 6
Community Support
Community Support

Re: Datetime slicer

@Nicki ,

 

Yes, currently, built-in slicer doesn't support time-level filtering(except list mode). What if parameters is one workaround as you said. Another possible workaround I have come out is that you can separate the datetime folumn into date and time colomn, they format the time column(HH:MM:SS) as number type (HHMMSS), they create two slicers based on date and time column. Then the time column should be filtered bu slicer with between and other relative mode.

 

Community Support Team _ Jimmy Tao

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

 

Nicki Helper I
Helper I

Re: Datetime slicer

Thank you for your respond.

I have two  slicers  for date and  time and slider for time  is off.

In this case, users can enter any time. 

The only things, we can enter any number in slicer.

Is there any way I can check the Number (Hour 1-23 and minute 0-59)  for slicer like if parameter?

 

Regards,

Nicki

 

 

Community Support
Community Support

Re: Datetime slicer

@Nicki ,

 

The slicer doesn't have this feature. As a workaround, you can create two measures using DAX like:

Is_Hour_Valid =
IF (
    SELECTEDVALUE ( Table[Hour] ) >= 1
        && SELECTEDVALUE ( Table[Hour] ) <= 23,
    "Valid",
    "Invalid"
)

Is_Minute_Valid =
IF (
SELECTEDVALUE ( Table[Hour] ) >= 0
&& SELECTEDVALUE ( Table[Hour] ) <= 59,
"Valid",
"Invalid"
)

Community Support Team _ Jimmy Tao

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

Nicki Helper I
Helper I

Re: Datetime slicer

Thank you.

a measure cannot add to page level filters.

 

Nicki

Community Support
Community Support

Re: Datetime slicer

@Nicki ,

 

There's no need to use page level filter, you only need to drag the two measures to visual chart. When user select an hour or minute. The measures will remind them that if the value they select is valid. This is a workaround.

 

Community Support Team _ Jimmy Tao

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

Highlighted
Nicki Helper I
Helper I

Re: Datetime slicer

Thanks.

I have lots of charts and do not want to add to each visual chart.

 

Nicki

View solution in original post

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors