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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jeffwash666
New Member

power bi line chart - multiple lines single table

Hi All,

 

My data looks like this.  I want to create a line chart where the Date is the X axis, the Amount is the Y axis, and each company has it's own line.  Can anyone help?

 

CompanyDateAmount
Company A24-Jan1366
Company A24-Feb1815
Company A24-Mar1974
Company A24-Apr1176
Company B24-Jan1413
Company B24-Feb1889
Company B24-Mar1405
Company B24-Apr1822
Company C24-Jan1889
Company C24-Feb1545
Company C24-Mar1775
Company C24-Apr1753
2 ACCEPTED SOLUTIONS
mh2587
Super User
Super User

 
> In the Visualizations pane on the right, click on the Line chart icon.
>In the Fields pane, drag the Date column to the Axis field.
>Drag the Amount column to the Values field.
>Drag the Company column to the Legend field.
 


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



View solution in original post

AnkitaaMishra
Super User
Super User

Yes you can have the different lines for each company by dragging "company" column on the legend field of the line chart as shown in the below snapshot : 

 

ankita_mishra_9_0-1719335941450.png

 

 

 

 

 

 

 

View solution in original post

2 REPLIES 2
AnkitaaMishra
Super User
Super User

Yes you can have the different lines for each company by dragging "company" column on the legend field of the line chart as shown in the below snapshot : 

 

ankita_mishra_9_0-1719335941450.png

 

 

 

 

 

 

 

mh2587
Super User
Super User

 
> In the Visualizations pane on the right, click on the Line chart icon.
>In the Fields pane, drag the Date column to the Axis field.
>Drag the Amount column to the Values field.
>Drag the Company column to the Legend field.
 


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors