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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.