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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Cross referencing with in the same table

Hello,

 

I have a data set that references the employees in two columns. But I need to compare them. When I conduct a count formula, to distinguish the number of cases assigned by an employee and the number of cases scheduled by an employee, the numbers are always identical. Here is what the data looks like. How do count how many ID's have been scheduled by an employee and how many ID's have been assigned by an employee? 

 

#Assigned by = COUNT('Interpreter usage report'[Assigned by.1])
#Scheduledby =
COUNT('Interpreter usage report'[Scheduled by.1])
 
When I make a list of employees and add these measures as columns. The numbers are inaccurate. 
 
Is there a better way to organize this data? Also, I will be adding other measures to the table (i.e. Average rate per employee, etc.)

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

You can try to use the following measure formula to calculate the field aggregated based on current employee group:

#Assigned by =
CALCULATE (
    COUNT ( 'Interpreter usage report'[Assigned by.1] ),
    ALLSELECTED ( 'Interpreter usage report' ),
    VALUES ( 'Interpreter usage report'[Employee] )
)

#Scheduledby =
CALCULATE (
    COUNT ( 'Interpreter usage report'[Scheduled by.1] ),
    ALLSELECTED ( 'Interpreter usage report' ),
    VALUES ( 'Interpreter usage report'[Employee] )
)

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @Anonymous,

You can try to use the following measure formula to calculate the field aggregated based on current employee group:

#Assigned by =
CALCULATE (
    COUNT ( 'Interpreter usage report'[Assigned by.1] ),
    ALLSELECTED ( 'Interpreter usage report' ),
    VALUES ( 'Interpreter usage report'[Employee] )
)

#Scheduledby =
CALCULATE (
    COUNT ( 'Interpreter usage report'[Scheduled by.1] ),
    ALLSELECTED ( 'Interpreter usage report' ),
    VALUES ( 'Interpreter usage report'[Employee] )
)

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Sorry for the delay, but that did not resolve my issue. The numbers are inaccurate. 

Anonymous
Not applicable

 

Here is what the table looks like when I try to put the measures in the same visual...

eeddbfb1-6ef2-43c0-912f-0d88e413d825.png

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.