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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello dear PowerBI-Community
Hope you all doing well so far.
I habe the following problem.
I would like to count how many times a specific forename in combination with it's lastname occurs.
Take this table as example (Red column is what I want to calculate)
Any Ideas?
forename | surename | Occurence |
Max | Miller | 2 |
Max | Watson | 2 |
Alice | Shiffrin | 1 |
Max | Watson | 2 |
Max | Miller | 2 |
Alice | Muster | 1 |
Ann | Bond | 1 |
Thank you very much for your contribution.
Cheers
qwertzuiop
Solved! Go to Solution.
Hi @qwertzuiop
try
Occurence = CALCULATE(
COUNTROWS('Table'),
ALLEXCEPT('Table', 'Table'[forename], 'Table'[surename])
)
Hi @az38
Thank you so much for your help.
But unfotunatelly I can't test this formula in my example because the formula may not fit.
Could you attach a testfile where you use this formula?
Cheers
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
11 | |
9 | |
8 | |
8 |