Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
46 | |
28 | |
22 | |
12 | |
8 |
User | Count |
---|---|
76 | |
51 | |
44 | |
16 | |
12 |