Hi everyone, I was puzzle how to count the total number of customers by Tasks by the given below scenario. Thanks in advance 
Two tables have the inactive relationships: Tasks[Jobs Job Client ID] and Clients[ID]
DAX measure
Total Customers by Tasks =
CALCULATE (
DISTINCTCOUNT ( Clients[ID] ),
FILTER ( Clients, Clients[Is Prospect] = "No" ),
USERELATIONSHIP ( Clients[ID], Tasks[Jobs Job Client ID] )
)

Hi @ronald_balza, I think you want to be counting from the Tasks table and not the Clients table.
So something like:
Total Customers by Tasks =
CALCULATE (
//DISTINCTCOUNT ( Clients[ID] ),
DISTINCTCOUNT ( Tasks[Jobs Job Client ID] ),
FILTER ( Clients, Clients[Is Prospect] = "No" ),
//KEEPFILTERS (Clients[Is Prospect] = "No" ), <-- would work too
USERELATIONSHIP ( Clients[ID], Tasks[Jobs Job Client ID] )
)
Hope that helps, else would need to see your model 
Cheers
M
2 Likes