Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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.

  • 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

2 Replies

  • 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

    • Anonymous's avatar
      Anonymous
      Not applicable

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