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

View all the Fabric Data Days sessions on demand. View schedule

Reply
MrBaseline
New Member

Problems using ADDCOLUMN when refreshing data

Hi,

 

I'm using ADDCOLUMNS to create a new table (Project Report) by appending fields to an existing table (cr047_projectmetrics):

 

Project Report = 
ADDCOLUMNS(
    cr047_projectmetrics, 
    "Project", 'cr047_projectmetrics'[cr047_name],
    "Est. Offtake (# Years)", 
             CALCULATE(MAX('cr047_projectmetrics'[cr047_estimatedofftakenrofyears]),
             FILTER('cr047_well',
             'cr047_well'[cr047_site] = 'cr047_projectmetrics'[cr047_sitelookup]))
)

 

It actually contains more columns but that's not the issue. 

 

I have been editing, refreshing, saving and publishing this several times without any issues. Now, suddenly, I get this error for every other table in the model when trying to refrash the dataset:

 

Failed to save modifications to the server. Error returned: 'The Column with the name of 'Project' already exists in the 'Project Report' Table. '.

 

I suspect I somehow misunderstand ADDCOLUMNS. If I rename 'Project' to something else, I get the same error for another column name created in the expression above. It's like it runs the expression "on top" of something already defined.

 

Any help greatley appreciated!

1 REPLY 1
amitchandak
Super User
Super User

@MrBaseline , Addcolumns will add columns to the table cr047_projectmetrics, so it should not match with other column in the table

 

Try with rename

 

Project Report =
ADDCOLUMNS(
cr047_projectmetrics,
"Project 1", 'cr047_projectmetrics'[cr047_name],
"Est. Offtake (# Years) 1",
CALCULATE(MAX('cr047_projectmetrics'[cr047_estimatedofftakenrofyears]),
FILTER('cr047_well',
'cr047_well'[cr047_site] = 'cr047_projectmetrics'[cr047_sitelookup]))
)

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors