Forum Discussion

jeffwash666's avatar
jeffwash666
New Member
2 years ago
Solved

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
  •  
    > 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.
     

  • 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 : 

     

     

     

     

     

     

     

     

2 Replies

  •  
    > 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.
     

  • 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 :