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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
virus190
Helper II
Helper II

Filter Time from 18:00 to 12:00 (next day)

Hi,

 

i want a filter in my reporting that shows all the data that have been beetween 18:00 to 12:00 (next day).

 

I have a Column with Date & Time, i extracted the Hour from this column and using it as a filter.

 

virus190_0-1597757821660.png

 

Now if i want the number of ID's that are beetween 18:00 and 12:00 (next day) i have to do it in 2 steps and add the number. (1. From 18:00 to 21:00, 2. From 07:00 to 12:00)

Is there a solution to do it in one step? 

 

Here is the .pbix

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Could you change the slicer to a list?

Karlos_0-1597759124691.png

View solution in original post

8 REPLIES 8
virus190
Helper II
Helper II

@Anonymous  ah why i didnt came up with this, so easy, but should work great.

A slicer would be a little bit nicer, then selecting/deselecting all values individually, i think.

 

@Pragati11 im gonna test this.

 

@richbenmintz i also like this one, i will test it. thanks.

Pragati11
Super User
Super User

Hi @virus190 ,

 

I tried to use Time Brush Slicer custom visual:

Pragati11_0-1597759375629.png

 

This sicer allows you to select a range of date-time values.

Additonal information on this can be found here:

https://community.powerbi.com/t5/Community-Blog/Advanced-Time-Line-Slicer-Sorting-data-by-shifts-up-...

 

Let me know if this is helpful.

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Could you change the slicer to a list?

Karlos_0-1597759124691.png

amitchandak
Super User
Super User

@virus190 , you need bucketing or you need one number?

Sorry, but im not sure what bucketing means?

 

I want to be able to use a time filter for all visuals on the page, so in this case that the number of id's and the table will be filtered with a dynamice filter like the slice.

Hi @virus190,

 

What about something like

 

Measure = 
    var cur = CALCULATE(COUNTROWS(Tabellenblatt1), FILTER(ALLSELECTED('Tabellenblatt1'), ('Tabellenblatt1'[DATE] >= MIN('Tabellenblatt1'[DATE]) && 'Tabellenblatt1'[Hour] >=Min('Tabellenblatt1'[Hour])))) 
    var next =  CALCULATE(COUNTROWS(Tabellenblatt1), FILTER(ALLSELECTED('Tabellenblatt1'), ('Tabellenblatt1'[DATE] <= max('Tabellenblatt1'[DATE]) && 'Tabellenblatt1'[Hour] <=Max('Tabellenblatt1'[Hour])))) 
return 
    cur + next

 

Hope this Helps,
Richard


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Anonymous
Not applicable

Try the following

 

Count of ID = 
CALCULATE(
	COUNTA('Tabellenblatt1'[ID]),
	'Tabellenblatt1'[Hour]
		IN { 7, 8, 9, 10, 11, 12, 18, 19, 20, 21 }
)

This would work, but i want it as a filter. 

 

18:00 - 12:00 was only an example. Sorry, didnt make it clear.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.