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

Don'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.

Reply
Thanksall
New Member

Counting number of employees meeting target when employee data

Thank you in advance. I really appreciate the help.

Here's what I have.

1. Employee table - data is grouped by (1) employee and (2) day. Sample data:

NameDateCalls TakenAbandoned CallsTitle
Susan1/1/231002Sales I
Susan1/2/231001Sales I
John1/1/231005Sales I
John1/2/231004Sales I
Dawn1/1/231003Sales II
Dawn1/2/231002Sales II

2. Goal table - has a relationship to the Employee table based on Title

TitleAbandon Rate Target
Sales I2%
Sales II1%

3. Abandon Rate measure: sum(abandoned calls)/sum(calls)

 

I need a measure that would show me how many unique employees meet their target. I tried:

1. Countrows with Filter where abandonrate <= Target - this didn't work because PBI counts the employee as meeting target if they meet their abandon rate on one day even if their total average rate is below target

2. Calculate and distinctrow nested formula filtered to abandonrate <= target - getting "A function 'PLACEHOLDER" has been used" error

Any help is appreciated.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Thanksall ,  Create measures like

 

m1 = divide(Sum(Employee[Abandoned]) , Sum(Table[call Taken]))

 

m2 = countx( Values(Employee[Name]) ,
var _target = maxx(filter(Goal, Goal [Title] =max( Employee[Title]) ), Goal[Abandon Rate Target])

return

if([M1]> _target , [Name], blank())

)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
Ahmedx
Super User
Super User

amitchandak
Super User
Super User

@Thanksall ,  Create measures like

 

m1 = divide(Sum(Employee[Abandoned]) , Sum(Table[call Taken]))

 

m2 = countx( Values(Employee[Name]) ,
var _target = maxx(filter(Goal, Goal [Title] =max( Employee[Title]) ), Goal[Abandon Rate Target])

return

if([M1]> _target , [Name], blank())

)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

This works, I had to add a condition in your if function to ignore names where the abandon rate is blank, but this is exactly what I was looking for. Thank you so much.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.