cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors