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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
GarethParry
Helper I
Helper I

ColumnName issue when using Excel from Sharepoint

Hi,

 

I am connecting to a Excel sheet located on sharepoint.

 

The first row of the sheet has

A1 = ""

B1 = ""

C1 = "Data for June"

D1=""

 

when it brings in the data intially into power BI the column headings in Power BI are Column1,Column2,Data for June,Column4

 

How do i set it to not call the 3rd column "Data for June" but Column3 instead?

 

i think i have to change 

 

= Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File", Table.ColumnNames(#"Transform File"(#"Sample File")))

 

but not sure to what

 

thanks

 

gareth

4 REPLIES 4
Anonymous
Not applicable

Hi @GarethParry ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it.

 

Best Regards,
Eyelyn Qin

GarethParry
Helper I
Helper I

Hi,

 

Thanks for the quick reply. It addes the column headers at a point before i can remove the top row, or add the index column

 

thanks

 

Gareth

Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

In your Transform file code

Go to Transform menu - Use Headers as First Row

Home menu - Remove Rows - Remove Top Rows - Give a value of 1

Anonymous
Not applicable

1. add index column

2. replace value if index column=0/1(first row)

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Top Solution Authors