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 am wanting to add a column to my data to determine when a call is abandoned. Here is my currrent formula and the result I am getting.
Formula: Column = IF('Table1'[Participant] = "agent", IF('Table1'[Segment] <> "interact", "Abandoned"))
Current Result:
| Record ID | Participant | Segment | Current Result |
| 1 | agent | alert | Abandoned |
| 1 | ivr | ivr | |
| 1 | acd | interact | |
| 1 | acd | delay | |
| 1 | customer | interact | |
| 2 | agent | wrapup | Abandoned |
| 2 | agent | interact | |
| 2 | agent | alert | Abandoned |
| 2 | acd | interact | |
| 2 | acd | delay | |
| 2 | ivr | ivr | |
| 2 | customer | interact |
I would like the result to be as per below - only counting records as Abandoned if one of the participants is an 'agent' and there is only the one segment for 'alert'
Expected Result:
| Record ID | Participant | Segment | Expected Result |
| 1 | agent | alert | Abandoned |
| 1 | ivr | ivr | |
| 1 | acd | interact | |
| 1 | acd | delay | |
| 1 | customer | interact | |
| 2 | agent | wrapup | |
| 2 | agent | interact | |
| 2 | agent | alert | |
| 2 | acd | interact | |
| 2 | acd | delay | |
| 2 | ivr | ivr | |
| 2 | customer | interact |
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
Expected Result CC =
VAR _recordid = Table1[Record ID]
VAR _list =
CALCULATETABLE (
Table1,
Table1[Record ID] = _recordid,
Table1[Participant] = "agent",
Table1[Segment] <> "alert"
)
RETURN
IF ( COUNTROWS ( _list ) = 0 && Table1[Segment] = "alert", "Abandoned" )
Hi,
Please check the below picture and the attached pbix file.
Expected Result CC =
VAR _recordid = Table1[Record ID]
VAR _list =
CALCULATETABLE (
Table1,
Table1[Record ID] = _recordid,
Table1[Participant] = "agent",
Table1[Segment] <> "alert"
)
RETURN
IF ( COUNTROWS ( _list ) = 0 && Table1[Segment] = "alert", "Abandoned" )
Thanks, this solved my issue!
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 |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |