Forum Discussion

karthi_power_bi's avatar
karthi_power_bi
Frequent Visitor
3 years ago
Solved

X Axis Constant Line is missing

I have a line chart ( which shows Actuals & Forecast) with multipe legends. I would like to draw a vertical line where the forecast start date i.e., from next month onwards.

 

X Axis is having values as "Jan, Feb,Mar,Apr, May,Jun,Jul,Aug,Sep,Oct,Nov,Dec"

 

Y axis is having values as $50M, $100M, $150M

 

Line chart shows data for 3 department's actual and forecast.

 

I need to seggregate the Actuals & Forecast with that vertical line. 

 

  • Currently the vertical line for the x-axis is only available for numeric axis. There is hack of sorts to keep the vertical line with text axis, but I have only managed to make it work with a clustered column chart. It basically involves starting off with a line chart, adding both the numeric and text fields to the axis (the order seems to be important, so the text above the numerical), adding the vertical line (while the axis displays the numerical values) and then swicthing to a clustered column chart.

2 Replies

  • PaulDBrown's avatar
    PaulDBrown
    Community Champion

    Currently the vertical line for the x-axis is only available for numeric axis. There is hack of sorts to keep the vertical line with text axis, but I have only managed to make it work with a clustered column chart. It basically involves starting off with a line chart, adding both the numeric and text fields to the axis (the order seems to be important, so the text above the numerical), adding the vertical line (while the axis displays the numerical values) and then swicthing to a clustered column chart.

    • mpsrshl's avatar
      mpsrshl
      Advocate II

      Amazing answer, I cannot believe this feature is so limited and buggy. shambles