Can PowerPivot create a column with distinct items out of the data within the DataBase?

AmitM

Board Regular
Joined
Feb 4, 2015
Messages
53
Hi,
My DB contains company names repeating themselves several times (in the same column).
Can I create a new table that shows only the distinct names, and use it to work with the data?
My intention is to allow my users to choose only from the options within the DB (mimic in a way the list validation option in excel)
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Why don't you just add a slicer of company names to your report, that will just be the distinct values?
 
Upvote 0
Why don't you just add a slicer of company names to your report, that will just be the distinct values?

I want to use that data to work with it, so for instance by knowing the companies name I can create a regular sheet and get my users to use only companies in the database (using validation)
 
Upvote 0
Not sure I understand that comment, but the slicer will be from the data, only the companies in your database.
 
Upvote 0
I will explain again.
I don't want to slice the data to present a part of it, but to use the distinct names for other purposes. I want my users to create a table of names of companies and what they supply us.
Since i dont want to have more than 1 name veraion of name to each company, i thought of using validation from list to force them to pick just names that are inside the system.
That is why i want to be able to get the diatinct column. It will serve as the list for "validation"
 
Upvote 0
You can query out of your db with "select distinct CompanyName from Companies" or you can use Power Query to remove duplicates?
 
Upvote 0
how do I do the first?

I ended up using PQ to do the above, but wonder for alternatives.
 
Upvote 0

Forum statistics

Threads
1,224,091
Messages
6,176,294
Members
452,719
Latest member
Boonchai Charoenek

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top