Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a table like below. I would like find find common names present in the table.
Data structure - the names will name be same under unique ID and under unique sub ID. But it could be same if unique ID and unique sub ID changes. I want common names to be present like the last column as an output using dax. Appreciate your guidance on this.
Thanks.
| Unique ID | Unique Sub ID | Name | Common Names under unique ID |
| A | 1 | Jack | Jack |
| A | 1 | Rajesh | Rajesh |
| A | 1 | Karan | |
| A | 2 | Rajesh | Rajesh |
| A | 2 | Jack | Jack |
| A | 2 | Ani | |
| B | 3 | Jack | |
| B | 3 | Karan | Karan |
| B | 4 | Karan | Karan |
| B | 4 | Clark |
|
Solved! Go to Solution.
@Rahul_SC , try like
New Measure=
var _cnt = countx(filter(allselected(Table) , [Unique ID] = Max([Unique ID]) && [Name] = Max([Name]) ), [Name])
return
if(_cnt >1, [Name], blank())
or
New Measure=
var _cnt = countx(filter(allselected(Table) , [Unique ID] = Max([Unique ID]) && [Name] = Max([Name]) ), [Name])
return
if(_cnt >1, [Name], "")
@Rahul_SC , Based on what I got
New colum =
var _cnt = countx(filter(Table, [Unique ID] = earlier([Unique ID]) && [Name] = earlier([Name]) ), [Name])
return
if(_cnt >1, [Name], blank())
@Rahul_SC , try like
New Measure=
var _cnt = countx(filter(allselected(Table) , [Unique ID] = Max([Unique ID]) && [Name] = Max([Name]) ), [Name])
return
if(_cnt >1, [Name], blank())
or
New Measure=
var _cnt = countx(filter(allselected(Table) , [Unique ID] = Max([Unique ID]) && [Name] = Max([Name]) ), [Name])
return
if(_cnt >1, [Name], "")
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 20 | |
| 20 | |
| 20 | |
| 14 | |
| 14 |