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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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