Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
lbrosten
Contributor III
Contributor III

Total Distinct count between two tables

I have two tables - Service Requests and Evaluations and want to count the number of unique accounts. I used Policy ClientID for Services and Policyholder from Evaluations. One account can have multiple entries in either table.

Measure 1 from the Service Requests table -  Count(distinct [Service Requests V1.Policyholder])     Answer: 38

Measure 2 from the Evaluations Table - Count(distinct [Policyholder] )     Answer:69

These two measures give me the distinct count for each of the tables. 

Now I want create a measure which answer the question:

How many distinct accounts are in the combined Service requests and Evaluations tables. The answer is 85.

 

 

4 Replies
anthonyj
Creator III
Creator III

Hi @lbrosten ,

You could try:

Count(distinct {$<[Policyholder]={"=[Policyholder] = [Service Requests V1.Policyholder]"}>}[Policyholder] )

See if that does the trick.

Thanks

Anthony

vinieme12
Champion III
Champion III

How are these two table associated in your data model? 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
lbrosten
Contributor III
Contributor III
Author

Thanks. It came back 22. Looking for 85.

lbrosten
Contributor III
Contributor III
Author

 The Services table and the Risk Eval table are associated by field “Group Policy No-Policy Number”

lbrosten_0-1636989639826.png