Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, need some help on a calculated column to get the column 4 "result - most visited" based on column 1& 3 (name, visited). the result has to be the most repeated value in column 3(visited) for that particular name.
Appreciated for your help
Thanks
Table:
name month visited result - most visited
| mike | Jan | LA | Dallas |
| mike | Jan | Dallas | Dallas |
| mike | Jan | Austin | Dallas |
| mike | Feb | Dallas | Dallas |
| Dan | march | NJ | NJ |
| sam | Jan | NY | LA |
| sam | march | LA | LA |
| sam | march | LA | LA |
| sam | march | Austin | LA |
@Anonymous Here is my approach
First create a calculated column to get the count of visit by name and visited
VisitCount = CALCULATE(COUNT('Table'[Visited]),ALLEXCEPT('Table','Table'[Name],'Table'[Visited]))Then create a measure to get the name of city
Measure =
VAR _max = CALCULATE(MAX('Table'[VisitCount]),ALLEXCEPT('Table','Table'[Name]))
RETURN CALCULATE(MAX('Table'[Visited]),FILTER(ALLEXCEPT('Table','Table'[Name]),'Table'[VisitCount]=_max))
Would give the solution if I could, this worked for me.
Thanks.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |