Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Help with displaying data from 2 different tables in same chart

Hello all,

 

I have a $ for group a in one table, then $ for group b and $ for group c in a seperate table. Is there an easy way to combine table 1 $ and group name into the values and legend of a line chart? 

 

Thanks,

  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous ,

    According to your provide data, I created one sample pbix file. You can download it from this link and check the details.

    Best Regards

    Rena

6 Replies

  • Anonymous 

    You can create a new dimesion and join will all three tables
    group = distinct(union(all(table1[group1]),all(table2[group2]),all(table3[group3])))

    Also you can combine measure from different table
    Measure = sum(Table1[Value1]) + sum(Table2[Value2]) + sum(Table3[Value3])

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    If you have the similar structure with my table a and table b in below screenshot, you can apply "Append Queries as New" first. Then drag the related fields from new appended table onto line chart visual.

    If the above information is not applicable in your scenario, please provide the related table structure and more sample data(exclude sensitive data).

    Best Regards

    Rena

    • Anonymous's avatar
      Anonymous
      Not applicable
      SourceVPAccountPeriodGSV $  SourceVPPeriodGSV $Account
      2019 TotalsWestAccount AP1 $ 1,000,000.00  DemandWestP1$5,000,000Account A
      2019 TotalsWestAccount AP2 $ 2,000,000.00  FieldWestP1$4,000,000Account A
      2019 TotalsWestAccount AP3 $ 4,000,000.00  DemandEastP1$3,000,000Account B
      2019 TotalsEastAccount BP1 $     600,000.00  FieldEastP1$2,000,000Account B
      2019 TotalsEastAccount BP2 $     700,000.00  DemandWestP1$5,000,000Account C
      2019 TotalsEastAccount BP3 $     500,000.00  FieldWestP1$1,200,000Account C
      2019 TotalsWestAccount CP1 $     400,000.00  DemandWestP2$8,700,654Account A
      2019 GSVWestAccount CP2 $     450,000.00  FieldWestP2$7,000,000Account A
      2019 GSVWestAccount CP3 $     600,000.00  DemandEastP2$7,500,000Account B
             FieldEastP2$8,000,000Account B
             DemandWestP2$8,500,000Account C
             FieldWestP2$9,000,000Account C
             DemandWestP3$8,700,654Account A
             FieldWestP3$7,000,000Account A
             DemandEastP3$7,500,000Account B
             FieldEastP3$8,000,000Account B
             DemandWestP3$8,500,000Account C
             FieldWestP3$9,000,000Account C
      • Anonymous's avatar
        Anonymous
        Not applicable