Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |