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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
WanqiYao
Frequent Visitor

Joining two matrix visualisation based on the same rows

Hi team!

I currently have 2 tables sharing the same rows and I want to see how I can join them together to make the visualisation easier to see.
Table 1:
Region     Employement Type 1 Employement Type 2
Oceania                               100                               50
Asia                                     199                               34
Table 2:
Region                        Technical                      Support

Oceania                               99                               150
Asia                                    100                               34

And I want to join the two matrixes such that the final table looks like 

Region     Employement Type 1 Employement Type 2               Technical                      Support
Oceania                               100                               50                99                               150
Asia                                     199                               34                 100                               34

 

Table 1 and table 2 are two independent data sources joined by a many to many relationship based on region. Please let me know if you have any good ways of achieving this. Thanks in advance!


1 ACCEPTED SOLUTION

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1767841400115.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

10 REPLIES 10
v-achippa
Community Support
Community Support

Hi @WanqiYao,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @krishnakanth240@lbendlin and @Ashish_Mathur for the prompt response. 

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user's for the issue worked? or let us know if you need any further assistance.

 

Thanks and regards,

Anjan Kumar Chippa

Hi!

Yep, it was exactly what I was looking for, thank you @krishnakanth240@lbendlin and @Ashish_Mathur so much for the prompt advice! I was getting my head stuck on combining tables when I could have just worked around it. Thanks you so much!

Regards,

Wanqi

WanqiYao
Frequent Visitor

Hi @krishnakanth240  @Ashish_Mathur  @lbendlin , thank you so much for the replies! And apologies I wasn't clearer before. The original tables are in the format of:
Region       Employment

Oceania     Eployment Type 1

Oceania     Eployment Type 1

Oceania     Eployment Type 2
The table mentioned above is already using a count measure for the visualisation, likewise with the second table, so it would be a many to many relationship unfortunately, and joining the table wouldn't solve the issue.
@lbendlin  Could you kindly elaborate on how to achieve it? I'm not sure what you mean.

 

Again, thank you so much for the replies.

Regards,
Wanqi

Am still confused.  I do not know what is the input/what is the result expected.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Hi! Please see the data attached:
Table 1:

RegionRole
OceaniaTechnical
OceaniaTechnical
OceaniaTechnical
OceaniaSupport
OceaniaTechnical
AsiaTechnical
AsiaTechnical

 

 

Table 2:

RegionEmpoyment Type
OceaniaPermanent
OceaniaPermanent
OceaniaTemporary
OceaniaTemporary
AsiaPermanent
AsiaPermanent
AsiaTemporary



These two are just examples and extract of a bigger table with different size, (table 1 and table 2 have different number of rows and columns in the original format) and thats why I couldn't combine the columns, from this I would like to create a visualisation where the count of each attribute of the same region in one; with the two tables above the visualisation should look like:

RegionPermanentTemporaryTechnicalSupport
Oceania2241
Asia2120


Once again, thank you so much for the help! and please let me know if this is not clear.

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1767841400115.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
krishnakanth240
Power Participant
Power Participant

Hi @WanqiYao 

 

Create a dimension table with a Region field. Provide relationship from the dimension table to Table 1 and Table 2 based on Region field with 1 to M cardinality. Then write the individual measures for Employment Type 1, Employment Type 2, Technical, and Support with SUM aggregation.

Ashish_Mathur
Super User
Super User

Hi,

In Power Query, merge Table2 into Table1 based on the Region column.  Then right click on the Region column and select "Unpivot Other Columns".  Click on Close and Apply.  Now create a matrix visual and write this measure

S = sum(Data[Value])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Create a geographic dimension table with your regions. Then use measures in your matrix visual for the individual value columns.

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.