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
Anonymous
Not applicable

Get X-Axis to display every hour in the day

Hi I have two clustered columns I want to display one below each other. These show total values for each hour.

 

However, if an hour doesn't have data, it doesn't show that hour.

 

For example, graph 1 might only have data from 06:00 to 21:00. Graph data has data from 00:00 to 23:00.

But I want both graphs to display all 24 hours in the day.

 

Is there anyway I can set the X-axis to display the 24 hours of the day, so you can compare the two graphs? I've tried "Show items with no data" but that's not working.

 

Thanks

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

Hi @Anonymous 

 

You need create a new table with a column which is listing 0-24 hour, and then manage the relationship between your fact table. 

Then you can use the new column added above as X axis, and enable the "Show items with no data", I believe you can work it out!

 

Community Support Team _ Dina Ye
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-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

You need create a new table with a column which is listing 0-24 hour, and then manage the relationship between your fact table. 

Then you can use the new column added above as X axis, and enable the "Show items with no data", I believe you can work it out!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Greg_Deckler
Super User
Super User

@Anonymous Try:

Measure =
  VAR __Calc = <some calc>
RETURN
  __Calc+0

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.

Top Solution Authors