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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

How to create two lines in a line chart?

Hello all,

 

 

I want to show how many INCIDENTTICKETS in the year 2016 and 2017 in a line chart.

i am using the field Month on the X-asis and the value is count distinct of INCIDENTTICKET.

 

My goal is to show two lines of year 2016 and 2017 in a line chart without using Slicer.

 

Thanks for all your help!

 

 

2017-03-01 16_46_38-Incident_Insight_v1 - Power BI Desktop.png

 

 

 

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

Place the YEAR field in the Legend! Smiley Happy

View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

As Sean mentioned above, just add the Year column to Legend field of the Line Chart like below.Smiley Happy

twoline.PNG

 

Regards

Sean
Community Champion
Community Champion

Place the YEAR field in the Legend! Smiley Happy

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors