Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi,
I have a power bi report that is connected to data sources using a direct query. I have a time column (format hh:mm). I want to know how can I extract and aggregate hours in a way that the slicer only shows hours for selection as shown in the picture below.
Also, using this slicer, the visual should is also updated.
In summary, I want only hours and not minutes (like 1:00, 2:00 ... 24:00), because the user should be able to filter only one day's data.
Solved! Go to Solution.
Using Power Query, add a Column using the following, and refer to that column as the value in the slicer:
= Table.AddColumn(#"Changed Type", "Hour", each Time.Hour([Period]), Int64.Type)
It works. Thanks
Using Power Query, add a Column using the following, and refer to that column as the value in the slicer:
= Table.AddColumn(#"Changed Type", "Hour", each Time.Hour([Period]), Int64.Type)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.