DAX formula to find unique values for a case

KennC

New Member
Joined
Feb 7, 2015
Messages
2
I have a table in PowerPivot that I am looking to find unique users who have done work on a particular case and enter that number as a numeric value in a colume. For the table 'CaseUsers' below I am looking for a DAX formula that will give me the results listed in the column [Count of Unique Users] which are the unique users in [User] that have done work on each particular case [CaseID].

[TABLE="width: 342"]
<tbody>[TR]
[TD]CaseID[/TD]
[TD]User[/TD]
[TD]Count of Unique users[/TD]
[/TR]
[TR]
[TD]1234567[/TD]
[TD]JD2310[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1234567[/TD]
[TD]KC5150[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1234567[/TD]
[TD]JD2310[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1234567[/TD]
[TD]KC5150[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1234568[/TD]
[TD]JH5623[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1234568[/TD]
[TD]DC5642[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1234568[/TD]
[TD]JV7854[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1234568[/TD]
[TD]JH5623[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1234569[/TD]
[TD]KC5150[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1234569[/TD]
[TD]KC5150[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1234570[/TD]
[TD]JD2310[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]1234570[/TD]
[TD]KC5150[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]1234570[/TD]
[TD]JH5623[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]1234570[/TD]
[TD]JV7854[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]1234570[/TD]
[TD]KC5150[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]1234570[/TD]
[TD]JH5623[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]1234570[/TD]
[TD]JV7854[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]

Thank you in advance.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
This should work

=CALCULATE(DISTINCTCOUNT(SheetName[User]),FILTER(SheetName,SheetName[CaseID]=EARLIER(SheetName[CaseID])))
 
Upvote 0

Forum statistics

Threads
1,224,065
Messages
6,176,169
Members
452,710
Latest member
mrmatt36

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top