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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

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,

1 ACCEPTED SOLUTION

Hi @Anonymous ,

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

line chart.JPG

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yiruan-msft
Community Support
Community Support

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.

line chart.JPG

append.JPG

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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
Not applicable

 
 

Capture.PNG

 

Hi @Anonymous ,

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

line chart.JPG

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@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])

Greg_Deckler
Super User
Super User

Sample data would help. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

You could create an Enter Data query for your groups and relate this to your tables. Or, you might be able to Append all of your tables together. Going to depend.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.