Forum Discussion

alee5210's avatar
alee5210
Helper II
6 months ago
Solved

Create Line Chart W/ Dates On Y Axis

Hi All,

 

I have an idea of what I want to make but not sure how to go about it. I have a sample showing a few of the key activities we must complete before opening a store. We have a forecasted date as well as 2 contingency dates which account for delays like the below.

 

StoreActivitiesForecasted DateForecasted Contingency 1Forecasted Contingency 2Achieved
CentralRental Lease Signed14/12/202529/12/202513/01/202614/12/2025
Central50% Staff Found1/12/202516/12/202531/12/20251/12/2025
Central100% Staff Found10/01/202625/01/20269/02/202624/01/2026
CentralFit Out Completed31/01/202615/02/20262/03/20262/02/2026
CentralOnboarding16/02/20263/03/202618/03/2026 
CentralStore Open28/02/202615/03/202630/03/2026 

 

In Power BI, I want to show a chart that is similar to the below chart made in Excel. This would allow us to see how close the achieved dates of our activities have come to our forecasted/contingency dates. How would I go about this? I have tried a line graph in Power BI but it does not allow the dates in the Y-axis.

Thanks

  • alee5210 

    As you rightly mentioned we cannot place a date column into Y axis of a line chart in power bi.

    I would like to suggest a workaround, create a duplicate of date column in power query

    And then change the data type of this duplicate column to decimal in power bi and then the result would look like this 

    Then you will be able to plot the line chart using this duplicated column in Y axis. 

    TO avoid confusion, may be hide y axis title and lables completely and replace the default tooltip with cusotm tooltip page.

     

    If you want you can use measure driven dat labels and it looks like this  

    I am attaching the PBIX for your reference 

     

     

     

     

    Connect on LinkedIn

    you can read my blogs here: techietips.co.in

     

     








    Did I answer your question? Mark my post as a solution!
    If I helped you, click on the Thumbs Up to give Kudos.

    Proud to be a Super User!


2 Replies

  • alee5210 

    As you rightly mentioned we cannot place a date column into Y axis of a line chart in power bi.

    I would like to suggest a workaround, create a duplicate of date column in power query

    And then change the data type of this duplicate column to decimal in power bi and then the result would look like this 

    Then you will be able to plot the line chart using this duplicated column in Y axis. 

    TO avoid confusion, may be hide y axis title and lables completely and replace the default tooltip with cusotm tooltip page.

     

    If you want you can use measure driven dat labels and it looks like this  

    I am attaching the PBIX for your reference 

     

     

     

     

    Connect on LinkedIn

    you can read my blogs here: techietips.co.in

     

     








    Did I answer your question? Mark my post as a solution!
    If I helped you, click on the Thumbs Up to give Kudos.

    Proud to be a Super User!


  • v-echaithra's avatar
    v-echaithra
    Community Support

    Hi alee5210 ,

    We’d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.

    Thank you for your patience and look forward to hearing from you.
    Best Regards,
    Chaithra E.