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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
noamshn
Frequent Visitor

2 lines in 1 chart

Hello everyone,

I have a table with creation date and completion date. I want to make a line chart that will show 2 graphs, the count of creation dates in 1 graph (by month) and the count of completion dates in the second graph (by month).
In the table i created 4 new columns, month and year columns for the creation and completion dates.

After this i created a relationtiop between a calendar table and the month created column. because i cant create another relationtiop when i create the chart the creation line is good but the completion line is not the real data.

what am i doing wrong and how can i fix it?

noamshn_1-1692304321560.png

noamshn_2-1692304378977.png

 

2 REPLIES 2
noamshn
Frequent Visitor

@parry2k thank you.
so now i can see the right numbers when i'm not filtering by the year. how should i add the year of each one (completion and creation) in the filter? i created a completion year and creation year column and when i filter with both of them it not showing the real values.

noamshn_0-1692334800734.png

 

parry2k
Super User
Super User

@noamshn you need to create using completion date as well, but it will be inactive which is fine and then you can add measure to make it active:

 

Completion Count = 
CALCULATE ( COUNTROWS ( Table ), USERELATIONSHIP ( Table[Completion Date], DateTable[Date] ) )


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.