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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ArthurMediadev
Frequent Visitor

How to display values having a duplicate in other tables ? (Excel Tables on Sharepoint)

Hello Everyone!

 

My apologies if my request is very basic, i tried to search for a long time on the forum but unfortunetly i didn't catch anything helpful for now.

 

 

Here is my situation:

 

I am working with multiples companies datasets (around 40 files).

Those datasets are all Excel tables only.

And all of them are located separately in the same Sharepoint site.

(Each Excel file only have 1 sheet)

I am working with Office 365 Business Essentials + Power BI Pro.

 

 

My 40 Excel tables have all exactly the same columns of course. Each of them represents a unique country.

In my Power Bi all the Excel Tables are gathered in 1 Query.

 

So for my situation, I am focusing on 2 columns :

  • The column "Companies"
  • And the column "Country"

 

What i would like to do, is to get a visualisation showing the companies which have a duplicate in all others Excel Country Tables.

 

The idea would be to display a visualisation with the name of the company showing all the country having this same company.

 

Sample:

 

In this case I have 3 Excel tables (i plan to do it with more than 40)

 

As you can see 2 companies have twins in other countries : Co.ABCD and Co.Z.Y.W

 

Sample 1.PNG

 

 

 

 

 

 

Just to remind, on Power BI all the Excel Tables Sources are gathered in one Query.(Excel_Worksheet_France.xlsx, Excel_Worksheet_Japan.xlsx, Excel_Worksheet_India.xlsx, etc...) 

 

So actually it looks like that: 

Sample 3.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

So what i would like to get is a visualization showing something like that (broadly):

At least to have a visual showing clearly in which countries a company is located.

Sample 2.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

It may also be good if I can separate the companies which are located in only 1 country and the other companies which are located in more than 1 country.

 

Any idea how to do that? 😄

 

Thanks a lot for those who have the patience to read all my stuff eheh 😛 

 

 

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

Hi @ArthurMediadev

Create measures

names of countries = CONCATENATEX(FILTER(ALL(Sheet3),Sheet3[company]=MAX(Sheet3[company])),[country],",")

numbers of countries = CALCULATE(DISTINCTCOUNT(Sheet3[country]),FILTER(ALL(Sheet3),Sheet3[company]=MAX(Sheet3[company])))

13.png

 

Best Regards

Maggie

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @ArthurMediadev

Create measures

names of countries = CONCATENATEX(FILTER(ALL(Sheet3),Sheet3[company]=MAX(Sheet3[company])),[country],",")

numbers of countries = CALCULATE(DISTINCTCOUNT(Sheet3[country]),FILTER(ALL(Sheet3),Sheet3[company]=MAX(Sheet3[company])))

13.png

 

Best Regards

Maggie

ArthurMediadev
Frequent Visitor

Hello Everyone!

 

My apologies if my request is very basic, i tried to search for a long time on the forum but unfortunetly i didn't catch anything helpful for now.

 

 

Here is my situation:

 

I am working with multiples companies datasets (around 40 files).

Those datasets are all Excel tables only.

And all of them are located separately in the same Sharepoint site.

(Each Excel file only have 1 sheet)

I am working with Office 365 Business Essentials + Power BI Pro.

 

 

My 40 Excel tables have all exactly the same columns of course. Each of them represents a unique country.

In my Power Bi all the Excel Tables are gathered in 1 Query.

 

So for my situation, I am focusing on 2 columns :

  • The column "Companies"
  • And the column "Country"

 

What i would like to do, is to get a visualisation showing the companies which have a duplicate in all others Excel Country Tables.

 

The idea would be to display a visualisation with the name of the company showing all the country having this same company.

 

Sample:

 

In this case I have 3 Excel tables (i plan to do it with more than 40)

 

As you can see 2 companies have twins in other countries : Co.ABCD and Co.Z.Y.W

 

Sample 1.PNG

 

 

 

 

 

 

Just to remind, on Power BI all the Excel Tables Sources are gathered in one Query.(Excel_Worksheet_France.xlsx, Excel_Worksheet_Japan.xlsx, Excel_Worksheet_India.xlsx, etc...) 

 

So actually it looks like that: 

Sample 3.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

So what i would like to get is a visualization showing something like that (broadly):

At least to have a visual showing clearly in which countries a company is located.

Sample 2.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

It may also be good if I can separate the companies which are located in only 1 country and the other companies which are located in more than 1 country.

 

Any idea how to do that? Smiley Very Happy

 

Thanks a lot for those who have the patience to read all my stuff eheh Smiley Tongue 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.