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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rohithsundar
New Member

How to Make a Double Line Graph with two date columns?

Hello,

I am running into issues creating a double line graph (line graph with 2 lines). I am trying to have the x-axis as months January - December. I have a column that shows an "Expected Completion Date" and another column that shows "Actual Completed Date" and want to show both lines on the same graph. Right now, it is showing as the same line. Thanks! 

 

rohithsundar_0-1673657471321.pngrohithsundar_1-1673657488426.png

 

3 REPLIES 3
peegee68
Frequent Visitor

Thanks for this.

 

It helped me out on a a table where I had Action Items table with Created, Closed, and Due Dates all in the same row.  Was having all sort of problems with accurately plotting these values until I found your example above.

 

Paul

Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file and the MS Excel file (which you would have imported in the PBI file).


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your data model looks like, but I suggest having a calendar-dimension table with one active relationship and one inactive relationship, like the below picture. And then try using USERELATIONSHIP DAX function when analyzing inactive relationship.

 

I tried to create a sample pbix file like below.

I hope the below can provide some ideas on how to create a solution for your data model.

 

Jihwan_Kim_0-1673672560274.png

Jihwan_Kim_1-1673672799739.png

 

 

Project count actual complete date: = 
COUNTROWS(Project)

 

 

 

Project count expected complete date: =
CALCULATE (
    COUNTROWS ( Project ),
    USERELATIONSHIP ( 'Calendar'[Date], Project[Expected complete date] )
)

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.