Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
hey i want to identify the cases that has the same id but different name
T if the Id has multible names F if id has only unique name
thank you
i have the following data
id | name |
216000300 | jack |
216000300 | noah |
217000301 | jousef |
Solved! Go to Solution.
hi, @mina97
try below code
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly. Appreciate your kudos
Hello @mina97,
Can you please try this:
1. Calculate the Number of Unique Names per ID
UniqueNameCount =
COUNTROWS(
SUMMARIZE(
FILTER(
ALL(Table),
Table[id] = EARLIER(Table[id])
),
Table[name]
)
)
2. Create a New Column to Indicate if an ID has Multiple Names
MultipleNamesFlag =
IF([UniqueNameCount] > 1, TRUE(), FALSE())
Once you've created these measures/columns, you can add the MultipleNamesFlag column to your table visual or use it as a filter. The resulting output would be:
id name MultipleNamesFlag
216000300 jack T
216000300 noah T
217000301 jousef F
Should you require my further assistance, please do not hesitate to reach out to me.
Hi @mina97 ,
Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please feel free to let me know.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @mina97,
Can you please try this:
1. Calculate the Number of Unique Names per ID
UniqueNameCount =
COUNTROWS(
SUMMARIZE(
FILTER(
ALL(Table),
Table[id] = EARLIER(Table[id])
),
Table[name]
)
)
2. Create a New Column to Indicate if an ID has Multiple Names
MultipleNamesFlag =
IF([UniqueNameCount] > 1, TRUE(), FALSE())
Once you've created these measures/columns, you can add the MultipleNamesFlag column to your table visual or use it as a filter. The resulting output would be:
id name MultipleNamesFlag
216000300 jack T
216000300 noah T
217000301 jousef F
Should you require my further assistance, please do not hesitate to reach out to me.
hi, @mina97
try below code
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly. Appreciate your kudos
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |