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

Hour Filter to Capture Time up till Selected Hour

I report with a Date filter set to Today and a filter with Hour currently set to All.  I need to set it so when the Hour of 12pm is selected, the data in the report shows ALL data from start of the day up till 12pm or whatever the selected time is.   Below example, unless i go and click each hour I am only able to see the Hour selected.  With 1 Click Id like to see all Hour up till the Hour clicked.  thanks!

 

 

jdeharo_0-1721665330400.png

 

1 ACCEPTED SOLUTION
v-kaiyue-msft
Community Support
Community Support

Hi @jdeharo ,

 

Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!

 

 

Best Regards,

Clara Gong

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

View solution in original post

5 REPLIES 5
v-kaiyue-msft
Community Support
Community Support

Hi @jdeharo ,

 

Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!

 

 

Best Regards,

Clara Gong

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

newellaa
Frequent Visitor

It looks like slicer that you are referencing is for a date/time field. Use a slicer that references the hour only. Your first post seems like it just displays the hour in the slicer not the full date.

v-kaiyue-msft
Community Support
Community Support

Hi @jdeharo ,

 

Thanks for the reply from @newellaa , please allow me to provide another insight:

 

Based on your description, I created these data.

vkaiyuemsft_0-1721713160927.png


1. create a table, put in the 24 hours of the day, and don't have a relationship with the original table.

vkaiyuemsft_1-1721713173674.png


2. create MEASURE.

MEASURE = 
IF (
    SELECTEDVALUE ( 'Table 2'[hour] ) = BLANK ()
        || HOUR ( MAX ( 'Table'[Value] ) ) <= SELECTEDVALUE ( 'Table 2'[hour] ),
    1
)

 

3. Use the table with hour as slicer and filter the data with MEASURE value of 1 in the filters of the original table.

vkaiyuemsft_2-1721713213885.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

newellaa
Frequent Visitor

Under the Hour Slicer formatting there is an option to filter less than or equal to. In my version I appear to lose the ability to select from a list of hours. I must enter manually.

 

newellaa_0-1721668372092.png

 

@newellaa thanks this was what i was hoping for but as you see in my screenshot I dont see that option.  I have the latest Desktop version downloaded sorry what am I missing?  

jdeharo_0-1721744431700.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.