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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Marquian
Helper I
Helper I

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
v-shex-msft
Community Support
Community Support

HI @Marquian,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @Marquian,

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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

Marquian
Helper I
Helper I

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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