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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors