Forum Discussion
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?
- Anonymous3 years ago
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
3 Replies
- AnonymousNot applicable
Here is what the table looks like when I try to put the measures in the same visual...
- AnonymousNot 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
- AnonymousNot applicable
Sorry for the delay, but that did not resolve my issue. The numbers are inaccurate.