Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
adumith
Helper I
Helper I

ADDCOLUMNS cannot add column [Assignee] since it already exists

I have a tickets table, and I need to count the unresolved requirements by agent and return the result as the agent's name and the number of pending tickets they have to solve.

 

I have tried several formulas, but I haven't been able to achieve the desired outcome.

CountPending = 
ADDCOLUMNS(
zendesk,
"Unresolved", CALCULATE(COUNTROWS(zendesk), zendesk[status] <> "Solved"),
"Assignee", zendesk[assignee]
)

I understand that I should use the ADDCOLUMNS function; however, when I construct the formula, I encounter this error:

 

ADDCOLUMNS cannot add column [Assignee] since it already exists

 

Any ideas?

 

Thank you in advance.

1 ACCEPTED SOLUTION
ray_aramburo
Super User
Super User

Do you need to explicitly add the count result to your source table? If not, just use the measure: 

Not Solved = CALCULATE(COUNTROWS(zendesk), zendesk[status] <> "Solved")

 And create a visual (table) with the Assignee field and that measure. 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
ray_aramburo
Super User
Super User

Do you need to explicitly add the count result to your source table? If not, just use the measure: 

Not Solved = CALCULATE(COUNTROWS(zendesk), zendesk[status] <> "Solved")

 And create a visual (table) with the Assignee field and that measure. 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Hello!

I did it in this way...

CountPending = 
    CALCULATE(
        COUNTROWS(zendesk),
        zendesk[status] <> "Solved" && zendesk[status] <> "Non measurable",
        ALLEXCEPT(zendesk, zendesk[assignee])
    )

 

But thank you, I appreciate your time to response me.

 

Have a good one.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.