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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Aggregate Hourly graph

Hi,

 

I've been trying to create the below graph in PowerBI:

 

snip1.PNG

It's a month's worth of data aggregated per time bracket.

 

My data column in BI has both date and time, however I can't just drill through like I'd hoped, and when I created a "Time Bracket" column using the following formula:  TIME BRACKET = MROUND(RP566[CREATE_DATE_TIME],"0:30") however when I create the graph using this as an axis, it keeps the data separated by date instead of aggregating it:

 

snip2.PNG

Any idea how I would achieve the above?

 

-Sam

 

 
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Anonymous 

it's difficult to help you without seeing full data model but try something like that

TIME BRACKET = MROUND(FORMAT(RP566[CREATE_DATE_TIME],"hh:mm:ss"),"0:30")

do not hesitate to give a kudo to useful posts and mark solutions as solution

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,
 
According to your description, you should format the year-month and time. Then take the time column as the X axis and the year-month column as the slicer.
Please try the DAX like this:
 
time = FORMAT(Sheet2[Start],"hh:mm:ss")
year_month = FORMAT(Sheet2[Start],"YYYY-MM")
 
test_0107.PNG
 
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

To help you further I need pbix file. If possible please share a sample pbix file after removing sensitive information.Thanks.

My Recent Blog -

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
az38
Community Champion
Community Champion

Hi @Anonymous 

it's difficult to help you without seeing full data model but try something like that

TIME BRACKET = MROUND(FORMAT(RP566[CREATE_DATE_TIME],"hh:mm:ss"),"0:30")

do not hesitate to give a kudo to useful posts and mark solutions as solution

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.