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
rsbin
Super User
Super User

ClockHour on X-Axis: Categorical vs Continuous

Good Day,

I have a calculated column based on 24-hour clock formatted as Time (hh:nn).

I want to create a "Continuous" line chart, but when I apply this column as my x-axis, I get time in AM / PM format.

 

image.png

If I change to "Categorical", I get my 24 hour clock, but, I do not get the continuous line chart that we desire.

image.png

I want the line chart from the first graph with the x-axis from the second.   Any help with accomplishing this would be appreciated!

 

Thanks and Kind Regards,

 

1 ACCEPTED SOLUTION
lkalawski
Memorable Member
Memorable Member

Hi @rsbin 

To achieve it you need to change/add new measure and use IF(ISBLANK([name]),0,[name]).

Currently, you don't see this Blank data for a few hours if you add this condition then you will see the line.

 

PBI_SuperUser_Rank@1x.png Proud to be a Super User.
If I helped, please accept the solution and give kudos
Linkedin

 

View solution in original post

2 REPLIES 2
lkalawski
Memorable Member
Memorable Member

Hi @rsbin 

To achieve it you need to change/add new measure and use IF(ISBLANK([name]),0,[name]).

Currently, you don't see this Blank data for a few hours if you add this condition then you will see the line.

 

PBI_SuperUser_Rank@1x.png Proud to be a Super User.
If I helped, please accept the solution and give kudos
Linkedin

 

@lkalawski 

Thank you for the response!  I believe you have solved my problem.

 

Best Regards,

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.