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.
I have this basic table:
| DayNo. | Customer | AgentsInvolved | CallID |
| 0 | AAA | 1 | 1858 |
| 0 | AAA | 3 | 1859 |
| 2 | AAA | 1 | 1860 |
| 0 | BBB | 2 | 1862 |
| 0 | CCC | 1 | 1863 |
| 0 | DDD | 3 | 1864 |
| 9 | DDD | 1 | 1865 |
| 9 | DDD | 4 | 1866 |
I need to be able to find the % of customers who only contacted only once, and spoke to 1 agent only. So from the above example, out of 4 distinct customers only customer CCC falls into this category (1 call, 1 AgentInvolved)
So the Desired result would be: 1/4 or 25%
How can I create a measure to do this calc?
Solved! Go to Solution.
Hi @Anonymous,
Based your logic, you could try the measures below.
CallId_1 =
CALCULATE (
DISTINCTCOUNT ( Table2[CallID] ),
ALLEXCEPT ( Table2, 'Table2'[Customer] )
)
Count =
CALCULATE (
SUM ( 'Table2'[AgentsInvolved] ),
FILTER ( 'Table2', 'Table2'[AgentsInvolved] = 1 && [CallId_1] = 1 )
)
% = DIVIDE([Count],CALCULATE(DISTINCTCOUNT(Table2[Customer]),ALL(Table2)))
Here is the output.
Best Regards,
Cherry
Try this formula
% = DIVIDE(SUM(Table1[AgentsInvolved]),CALCULATE(DISTINCTCOUNT(Table1[Customer]),ALL(Table1[Customer])))
Thanks for your reply. However, this wouldnt work as we need to find where AgentsInvolved = 1 and Count(callid) = 1
Hi @Anonymous,
Based your logic, you could try the measures below.
CallId_1 =
CALCULATE (
DISTINCTCOUNT ( Table2[CallID] ),
ALLEXCEPT ( Table2, 'Table2'[Customer] )
)
Count =
CALCULATE (
SUM ( 'Table2'[AgentsInvolved] ),
FILTER ( 'Table2', 'Table2'[AgentsInvolved] = 1 && [CallId_1] = 1 )
)
% = DIVIDE([Count],CALCULATE(DISTINCTCOUNT(Table2[Customer]),ALL(Table2)))
Here is the output.
Best Regards,
Cherry
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |