Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Dear all,
I'm trying to calculate on a calculated column the nr of different names for every CaseID
CaseID Name CC
A1 Peter 2
A2 Peter 1
A1 Ana 2
A3 Tom 1
Could somebody point me in the right direction, please?
Solved! Go to Solution.
Hi @setis ,
To create a calculated column as below.
CC =
CALCULATE (
DISTINCTCOUNT ( Table1[name] ),
FILTER ( Table1, Table1[Case ID] = EARLIER ( Table1[Case ID] ) )
)
Hi,
Try this calculated column
=CALCULATE(DISTINCTCOUNT(Data[Name]),FILTER(Data,Data[CaseID]=EARLIER(Data[CaseID])))
Hope this helps.
Hi setis,
You can achive with Group by & Merge Transforamtion.
Please check the screens and file.
https://drive.google.com/open?id=1wTm4HXqDz-J_-LugxyQ3RHL-_tkhB4EK
Hi setis,
You can achive with Group by & Merge Transforamtion.
Please check the screens and file.
https://drive.google.com/open?id=1wTm4HXqDz-J_-LugxyQ3RHL-_tkhB4EK
Hi,
Try this calculated column
=CALCULATE(DISTINCTCOUNT(Data[Name]),FILTER(Data,Data[CaseID]=EARLIER(Data[CaseID])))
Hope this helps.
Hi @setis ,
To create a calculated column as below.
CC =
CALCULATE (
DISTINCTCOUNT ( Table1[name] ),
FILTER ( Table1, Table1[Case ID] = EARLIER ( Table1[Case ID] ) )
)
Perhaps something along the lines of:
Column =
VAR __table = FILTER(ALL('Table6'),[CaseID]=EARLIER([CaseID]))
VAR __people = DISTINCT(SELECTCOLUMNS(__table,"__Name",[Name]))
VAR __distinct = DISTINCT(__people)
RETURN
COUNTX(__distinct,[__Name])
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 78 | |
| 48 | |
| 34 | |
| 31 | |
| 29 |