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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors