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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Tlotly
Resolver II
Resolver II

Show report views per 24 hours on a graph.

Hi all,

 

I have the following graph and I need to group the hours into 24 hours regardless of how many days I select on a slicer. 

 

Currently it shows the hours correctly when I select 1 day, see below:

Tlotly_2-1669212416655.png

 

But when I select more days, it splits the hours per day. I want it for example, to show 9:00AM only once. 

Tlotly_0-1669211908021.png

Please assist. How do I group the hours on the visual?

 

Thanks

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@amitchandak  thank you for the response.

 

I did create hours already on my table and that is what I was using as an X axis, which doesn't show as grouped.

 

I also did create a time table but the relationship to my dataset is not working.I did ensure that both are using the same time format. Not sure if this could be that the dates on the timetable are out of range to dates on my dataset? 

Tlotly_0-1669271542255.png

 

Dates on the timetable: 

Tlotly_1-1669271646923.png

 

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Tlotly , Have an hour column in your table or join with time table and use that on axis

 

https://kohera.be/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/

@amitchandak  thank you for the response.

 

I did create hours already on my table and that is what I was using as an X axis, which doesn't show as grouped.

 

I also did create a time table but the relationship to my dataset is not working.I did ensure that both are using the same time format. Not sure if this could be that the dates on the timetable are out of range to dates on my dataset? 

Tlotly_0-1669271542255.png

 

Dates on the timetable: 

Tlotly_1-1669271646923.png

 

 

Update:

 

I create a key on both tables i.e.  and it's now working perfectly.

       TimeKey = FORMAT('Reports-01'[TimeStart Hours],"hhmm")

 

Tlotly_0-1669285014280.png

Thank you

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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