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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.