Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Get new table containing unique values from existing table.
02-08-2023
02:37 PM
Hello Everyone I have a dataset that looks like this and want to get a table containing only unique values.
Employee ID | Company Worked |
123 | CompanyCars |
345 | CompanyCars |
678 | CompanyBus |
123 | CompanyAircrafts |
And the goal is to get unique values in another table that looks like this either by using power query or dax:
Employee ID | Company Worked |
123 | CompanyCars |
345 | CompanyCars |
678 | CompanyBus |
Solved! Go to Solution.
2 ACCEPTED SOLUTIONS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023
03:00 PM

hi @tomsuare
try to create a calculated table like:
table =
ADDCOLUMNS(
VALUES(TableName[Employee ID]),
CALCULATE(MAX(TableName[Company Worked]))
)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023
07:09 PM

Hi,
In the Result table, why have you chosen Cars over Aircrafts for Employee ID 123?
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023
04:46 AM

Edited due to misstyping.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023
05:40 PM

Your question is still not clear. Do you want to keep the active rows or the inactive rows? Take a larger dataset, explain the question in simple English and show the expected result.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023
03:00 PM

hi @tomsuare
try to create a calculated table like:
table =
ADDCOLUMNS(
VALUES(TableName[Employee ID]),
CALCULATE(MAX(TableName[Company Worked]))
)

Helpful resources
Recommendations
Subject | Author | Posted | |
---|---|---|---|
02-27-2023 05:14 AM | |||
08-02-2024 11:49 AM | |||
06-26-2024 08:07 PM | |||
07-03-2024 08:57 AM | |||
06-14-2024 04:14 AM |
Featured Topics
Top Kudoed Authors (Last Month)
User | Count |
---|---|
134 | |
106 | |
88 | |
55 | |
46 |