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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
GeekAlfPro
Resolver II
Resolver II

X-axis hours fixed

Hi,

i've a graph with hours on X-axis.

i'm looking for the way to fix range on 00:00 to 24:00 even if there no data between 00:00 et 07:00 for example.

on my graph the axis changes depending on the datas : 

 

GeekAlfPro_0-1646561757779.png

 

GeekAlfPro_1-1646561781111.png

 

Thanks !

5 REPLIES 5
GeekAlfPro
Resolver II
Resolver II

Hello @mhossain ,

 

thanks for your proposal, but unfortunately, i don't want to have values = to 0.

Maybe have i to create a table with hours ?

Is that what you suggest when you say : 

 

I guess, hours on the x axis coming from some mapping table and you have 0 to 24:00 all hours.

 

Hello @GeekAlfPro 

 

Yes, mapping table is required with all the hours.

So for the hours you don't have value what do you want to show?

yes, that's it, for some items, i have values for others, not.

that's why i want to fix the scale of hours.

i created a time table, but without success.

@GeekAlfPro 

 

Can you share the pbix with dummy data?

mhossain
Solution Sage
Solution Sage

@GeekAlfPro 

 

I guess, hours on the x axis coming from some mapping table and you have 0 to 24:00 all hours.
In the measure for the value you can add IF(ISBLANK(measure),0,measure).

Hope above helps.

You can share the dummy pbix if above is not clear.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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