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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
BobtheBI_lder
New Member

Line Chart X-axis - More Labels on Continuous

DatetimeMetric
12/31/2020 11:00:00 PM100
12/31/2020 10:00:00 PM200
12/31/2020 9:00:00 PM300
12/31/2020 8:00:00 PM200
12/31/2020 7:00:00 PM150
12/31/2020 6:00:00 PM250
12/31/2020 5:00:00 PM50
12/31/2020 4:00:00 PM375
12/31/2020 3:00:00 PM200

 

My data looks something like this (scope covering 1 month). The idea is to make a scatter plot with Datetime as the X-axis and Metric as the Y-axis. I was able to make the desired graph using the line chart, setting Datetime and Metric as the axes, and setting X-Axis options it to Continuous.

 

My problem is I want to show more X-Axis tick labels beyond the 5 days it automatically chooses. Ideally, I wanna show each day as its own tick (see below for a graph made in Excel). Is that possible?

Capture.JPG

 

TL;DR: I need my Line Chart in Continuous so it acts like a scatterplot the way I need it to work, but it only shows 5 days as as tick labels. I need all 28-31 days in a month to have their own.

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @BobtheBI_lder ,

 

You can create a computed column and set it to Data type – Date Formate – yyyy-mm-dd in Column tools:

Date1 =
DATE(YEAR('Table'[Date]),MONTH('Table'[Date]),DAY('Table'[Date]))

vyangliumsft_0-1692685305428.png

Set to Date in X-axis, not Date Hierarchy

vyangliumsft_1-1692685305431.png

The calculation and display are then aggregated based on specific dates

vyangliumsft_2-1692685330452.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

piotr_gor
Helper II
Helper II

Change X-axis type to Categorical. Then you have you adjust size of visual to display all the dates without scrolling. As long as you filter data by month it shoudn't be that bad.

 

I don't think that there's any other way. 

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.