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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
holydragon
Frequent Visitor

Displaying Totals for Each Category with Two separate tables

Hello,

 

I have two tables that have a common department number

 

Table 1                            Table 2

Dept.  Total                     Dept.  Total

A         1                           A        3

B         2                           C        5

C         3

 

Table 2 does not have all of the departments shown in Table 1.

 

What I would like to do is show a bar chart of the with the values to table 1 and table 2 side by side

 

Chart

 

1 3          3 5

A             B

 

however, whenever I link the tables together  I get the correct value for Table 1 but the total for table 2

 

Linked Table

 

        1              2

A     1              8

B     2              8

C     3              8

 

How do I reflect the right totals for Table 2?

 

I am expecting something like:

 

        1              2

A     1             3

B     2             

C     3              5

 

Any help is appreciated!

HD

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi holydragon,

 

You may merge table1 and table2 first, click query editor-> merge.

12.PNG 

2.PNG 

Then delete Table2.Dept. , the result is like below:

3.PNG 

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi holydragon,

 

You may merge table1 and table2 first, click query editor-> merge.

12.PNG 

2.PNG 

Then delete Table2.Dept. , the result is like below:

3.PNG 

 

Regards,

Jimmy Tao

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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