Forum Discussion
Count duplicate values using a DAX measure
- 8 years ago
Hi bullius,
Add you columns to the all except.
The new measure would be something like this:
Measure = CALCULATE( COUNT(Table1[PersonID]), ALLEXCEPT(Table1,Table1[PersonID],Table1[status]))
as you can see below the top half is raw data and measure without interacting with slicer, bottom part table is filter by status B
Regards,
MFelix
Hi bullius,
Use the following measure:
N.ยบ Employments =
CALCULATE ( COUNT ( Table1[PersonID] ), ALLEXCEPT ( Table1, Table1[PersonID] ) )Regards,
MFelix
- bullius8 years agoHelper V
Thanks MFelix,
I created a matrix with the measure in the values bucket, but it does not seem to be affected by visual level filters...
- MFelix8 years agoSuper User
What do you mean to be affected by visual level filters?
What type of iteractions you want to have and expected result.
Regards
Mfelix
- bullius8 years agoHelper V
My data also includes other fields like Status (Active/Inactive).
An example of the functionality I want would be:
I want to be able to filter the matrix to only include active emplyments and the No. of Employments per PersonID to change.
Make sense?
- Anonymous6 years agoNot applicable
How All Except Function is working in that function
- MFelix6 years agoSuper User
Hi Anonymous ,
The ALLEXCEPT function removes all context filters in the table except filters that have been applied to the specified columns. In this case when making the count it will only keep the ID and Status filter on the table.
In this case the calculation is picking up all users with the selected status B.
Regards,
MFelix