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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
SaltaSultan
Helper II
Helper II

How can I build a Line Chart based on Planned an Actual dates?

Hi All!

 

I have table with 8 columns in it which contains an information about action items and their statuses in percentage.

 

How can I build a Line Chart visual to see planned dates vs actual dates?

 

For example, thats the data that I have to begin with:

DepAI#AI NamePlanned StartActual StartPlanned EndActual EndStatus
SalesAI1A5/1/20245/1/20247/7/20247/7/2024100%
TrainingAI2B3/1/20243/1/202412/31/20243/31/202416,50%
ProcurementAI3C8/1/2024 9/30/2024 0%
TrainingAI4D9/21/2024 10/21/2024 0%
HRAI5F7/28/2024 8/31/2024 0%
HRAI6G7/22/2024 11/30/2024 25%
4 REPLIES 4
bhanu_gautam
Super User
Super User

@SaltaSultan , You can follow below steps

 

Click on the Line chart icon in the Visualizations pane.
Configure the Line Chart:

Drag the Dep column to the Legend field to differentiate lines by department.
Drag the Planned Start and Actual Start columns to the X-axis field. This will create two separate lines for planned and actual start dates.
Drag the Planned End and Actual End columns to the X-axis field as well. This will add lines for planned and actual end dates.
Drag the AI Name column to the Values field to display the action item names.
Format the Line Chart:

Click on the Format pane (paint roller icon) to customize the appearance of your chart.
Under Data colors, you can assign different colors to the planned and actual dates for better visualization.
Adjust the X-axis and Y-axis settings to ensure the dates are displayed correctly.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Dear @bhanu_gautam ,

 

It doesn't work... All I get is two straight lines when I'd like to see rundown curve...

 SaltaSultan_0-1722842591158.png

 

When I've added some quick measures to count actual and planned (I'm new user of DAX and probably doing something wrong) it shows more likable result, but still not rundown

 

SaltaSultan_1-1722843061357.png

 

 

Hi @SaltaSultan ,

 

Explain the reasons for choosing a line chart. Would using a matrix to model a Gantt chart be better for presenting data?

vcgaomsft_0-1722927568270.png

Create A Gantt Chart In Power BI With A Matrix Visual - YouTube

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Hi @v-cgao-msft ,

 

I'm not choosing line chart myself, it was requested from dashboard owner department) 

 

I've suggested different approach to this data, cause line chart is not suitable for it.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors