Forum Discussion
gambleave
3 years agoHelper II
Countrows based on distinct field
Hi, I have the below measure to count the number of records in the table "Employee Vote" where the Role is indicated as Sales and the Region is Europe. Count Europe Sales Votes = CALCULATE(C...
- 3 years ago
Hi,
Please try the below whether it suits your requirement.
Count Europe Sales Name = CALCULATE ( COUNTROWS ( DISTINCT ( 'Employee Vote'[Employee Name] ) ), FILTER ( 'Employee Vote', 'Employee Vote'[Role] = "Sales" && 'Employee Vote'[Region] = "Europe" ) )
Jihwan_Kim
3 years agoSuper User
Hi,
Please try the below whether it suits your requirement.
Count Europe Sales Name =
CALCULATE (
COUNTROWS ( DISTINCT ( 'Employee Vote'[Employee Name] ) ),
FILTER (
'Employee Vote',
'Employee Vote'[Role] = "Sales"
&& 'Employee Vote'[Region] = "Europe"
)
)
gambleave
3 years agoHelper II
Thanks very much, this works fine.