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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
PanBrodacz
New Member

Renaming columns in data source causing #REF! error in formulas with structured reference

1. I have a table with data from other file and formulas with structured reference to that table.

001.PNG

 

2. When I rename column in file with data source it causing #REF! error in formula with structured reference in output file.

002.PNG

 

3. PowerQuery not include any column names.

003.PNG

 

Is there any way to avoid breaking that structured reference in formula?

3 REPLIES 3
PanBrodacz
New Member

Thank you for your answers but I prefer version with column name. Is there any solution in that way?

KT_Bsmart2gethe
Impactful Individual
Impactful Individual

Hi @PanBrodacz ,

 

Here is a bit old fashion method:

 

  1. Cell E1, reference to Cell A1;
  2. Cell E2 add formula: Indirect("List1["&E1&"]")

Regards

KT

AKNiang
Frequent Visitor

You can avoid referencing the column name in the formula.

 

Reference instead the column A.

 

=List1(A:A)

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.