Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hey ihave the following data
First Name | last name | degree | payment | ID | |
jack | Eden | Eden exapmle.com | bachelor | 250$ | 2160003021 |
lora | Teigen | Teigen example.com | bachelor | 340 | 3160003021 |
jack | Edin | Eden1exapmle.com | bachelor | 600$ | 5160003021 |
jack | Eden | Eden1exapmle.com | bachelor | 500$ | 5160003021 |
how can i assign uniqe ID to the most frequent first name
because i have a lot of misspelled names and i want to unifiedthem
i wrote the following dax column but it i do not know how to add the most frequent first name part
name unique = VAR same_names = CALCULATETABLE ( SUMMARIZE ( 'Table1 (2)', 'Table1 (2)'[ID], 'Table1 (2)'[First Name] ), ALLEXCEPT ( 'Table1 (2)', 'Table1 (2)'[First Name] ) ) VAR ranking = RANKX ( same_names, 'Table1 (2)'[ID],, ASC, DENSE ) VAR blanks = REPT ( UNICHAR ( 8204 ), ranking - 1 ) VAR res = 'Table1 (2)'[First Name] & blanks RETURN res
Please HELP and THANK YOU
Solved! Go to Solution.
Hi @mina97
Please try
Most Frequent First Name =
VAR SameFirstNameTable =
SUMMARIZE (
CALCULATETABLE ( 'Table1 (2)', ALLEXCEPT ( 'Table1 (2)', 'Table1 (2)'[ID] ) ),
'Table1 (2)'[First Name],
"@Count", COUNTROWS ( 'Table1 (2)' )
)
VAR MostFrequentFirstNameTable =
TOPN ( 1, SameFirstNameTable, [@Count] )
VAR MostFrequentFirstName =
MAXX ( MostFrequentFirstNameTable, 'Table1 (2)'[First Name] )
RETURN
MostFrequentFirstName
Hi @mina97
Please try
Most Frequent First Name =
VAR SameFirstNameTable =
SUMMARIZE (
CALCULATETABLE ( 'Table1 (2)', ALLEXCEPT ( 'Table1 (2)', 'Table1 (2)'[ID] ) ),
'Table1 (2)'[First Name],
"@Count", COUNTROWS ( 'Table1 (2)' )
)
VAR MostFrequentFirstNameTable =
TOPN ( 1, SameFirstNameTable, [@Count] )
VAR MostFrequentFirstName =
MAXX ( MostFrequentFirstNameTable, 'Table1 (2)'[First Name] )
RETURN
MostFrequentFirstName
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
15 | |
11 | |
7 |
User | Count |
---|---|
25 | |
24 | |
12 | |
12 | |
11 |