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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Line chart from 3 tables

Hi,

I have 3 tables as below:

ManufTable:

ManufIdManufName
1ManufA
2ManufB
3ManufC

 

MonthTable:

MonthIdMonthShortNameMothFullName
1Jan-19January
2Feb-19February
3Mar-19March
4Apr-19April
5May-19May
6Jun-19June
7Jul-19July
8Aug-19August
9Sep-19September
10Oct-19October
11Nov-19November
12Dec-19December

 

SalesTable:

ManufIdMonthSales
11689200
12852624
13427710
14559398
15549769
16183417
17126708
18203347
19631240
110868961
111166726
112152378
21486075
22628491
23416089
24664931
25378287
26418267
27454814
28701295
29576266
210244606
211591859
21231740
31311089
32392370
33479272
34252425
35324161
36830742
37448548
38188729
39261155
310207371
311557076
312889613

 

Based on 3 tables above, how can I show the 3 lines of ManufA, ManufB and ManufC, which gives sales(Y-Axis) from Jan to Feb-19(X-Axis)?

 

Appreciate your help. Thank you.

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

Make the following relationships:

  • Manuf - Sales -> one to many
  • Month - Sales -> one to many

Then create a line chart with the following format:

  • Axis - MonthShortName
  • Legend - ManufName
  • Values - Sales

You can then use a slicer to filter the months.

 

Check PBIX file attach.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @Anonymous ,

 

Make the following relationships:

  • Manuf - Sales -> one to many
  • Month - Sales -> one to many

Then create a line chart with the following format:

  • Axis - MonthShortName
  • Legend - ManufName
  • Values - Sales

You can then use a slicer to filter the months.

 

Check PBIX file attach.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Perfect! Thank you so much. Just as I wanted it to be 🙂 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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