Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
qwertzuiop
Advocate III
Advocate III

Calculate Occurence

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?

 

forenamesurenameOccurence
MaxMiller2
MaxWatson2
AliceShiffrin1
MaxWatson2
MaxMiller2
AliceMuster1
AnnBond1

 

Thank you very much for your contribution.

 

Cheers

qwertzuiop

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

@qwertzuiop 

https://ufile.io/4ohv9nhd


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

4 REPLIES 4
az38
Community Champion
Community Champion

Hi @qwertzuiop 

try

Occurence = CALCULATE(
COUNTROWS('Table'), 
ALLEXCEPT('Table', 'Table'[forename], 'Table'[surename])
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

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

az38
Community Champion
Community Champion

@qwertzuiop 

https://ufile.io/4ohv9nhd


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Hi @az38 

Thank you so much for your quick respone and your solution.

It works as expected.

 

Cheers.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.