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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
imontoya14
Frequent Visitor

Filtering time for each day

Hi there, I'm not sure how easy this is but I've been stumped on this for a while. How can I pull the time to only show 6AM to 7PM everyday? instead of it showing 3AM and 9AM. I would like to remove all the data overnight and only have the report show 6AM to 7PM each day. 

 

imontoya14_0-1615831361269.png

 

 

Any help is appreciated. Thank you. 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

create a calculated column  HOUR(timestamp)  and then use that column to filter your visual.

View solution in original post

v-xulin-mstf
Community Support
Community Support

Hi @imontoya14

 

You can also try to create measure as:

Measure = 
CALCULATE(
    MAX(Table[Megawatts],
    FILTER(
        Table,
        HOUR([Time])>6 && HOUR([Time])<19 && HOUR([Time])<>7
)
)

 

Best Regards,

Link

 

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

2 REPLIES 2
v-xulin-mstf
Community Support
Community Support

Hi @imontoya14

 

You can also try to create measure as:

Measure = 
CALCULATE(
    MAX(Table[Megawatts],
    FILTER(
        Table,
        HOUR([Time])>6 && HOUR([Time])<19 && HOUR([Time])<>7
)
)

 

Best Regards,

Link

 

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

lbendlin
Super User
Super User

create a calculated column  HOUR(timestamp)  and then use that column to filter your visual.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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