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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Creating a filter that filters the last 24hours of results from 6AM of the current day

I have created several dashboards to measure various metrics across the week etc.

I would like to be able to only display information that relates to a specific time period each day.

 

I would like to display from 06:00 the previous day to 06:00 of the current day (todays example would be 01/10/2018 06:00 to 02/10/2018 06:00)

 

I would like the filter to automaticaly change after refresh (example if the data is refreshed and the current date is now 03rd October the date range would be 02/10/2018 06:00 to 03/10/2018 06:00)

 

any pointers?

I have looked thruogh for visaul addons and slicers to do it, but I am thinking it may end up having to be a DAX command to get it to do what I want.

 

Thanks in advance

 

Jon

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey.

 

I would create a new column on the Calendar Table.

 

On this column you would calculate your "mask" date (if after 6AM previous day and 6PM current day, or whatever).

 

Then, I would use this column for filtering.

 

To get always the last day, drag this column to the page filters on the right and set to "Relative" and then "Last n days".

 

I hope this helps.

 

Cheers.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hey.

 

I would create a new column on the Calendar Table.

 

On this column you would calculate your "mask" date (if after 6AM previous day and 6PM current day, or whatever).

 

Then, I would use this column for filtering.

 

To get always the last day, drag this column to the page filters on the right and set to "Relative" and then "Last n days".

 

I hope this helps.

 

Cheers.

Anonymous
Not applicable

Worked Perfectly thankyou!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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
Top Kudoed Authors