Forum Discussion

BobtheBI_lder's avatar
BobtheBI_lder
New Member
3 years ago

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?

 

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

  • 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. 

  • Anonymous's avatar
    Anonymous
    Not applicable

    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]))

    Set to Date in X-axis, not Date Hierarchy

    The calculation and display are then aggregated based on specific dates

     

     

    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