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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
UK_User123456
Resolver I
Resolver I

Data lookup

Hi All,

 

Just started with power query, I have an excel template that I use which gives me the data I need with the columns set up, however on a monthly basis the csv file that comes through, has the data set in different columns, this is just how it comes in, is there any way of being able to set this up so that a column looks up the whole data set from the csv file and pulls through the correct column.

 

eg...

 

My template is setup like this

 

First NameSurnameAgeGift Amount
TestOne2520
TestTwo3620
TestThree4110
TestFour28

15

 

Each month the data could come in as:

 

SurnameGift AmountFirst NameAge
One20Test25
Two20Test36
Three10Test41
Four15Test28

 

or 

 

Gift AmountSurnameAgeFirst Name
20One25Test
20Two36Test
10Three41Test
15Four28Test

 

Is there a way of being able to set up within the data model a way of it automatically looking up the correct column and pulling it through?

 

Thanks

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @UK_User123456 ,

 

If you get data from folder, then your data will be append automatically by column name.

2.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @UK_User123456 ,

 

If you get data from folder, then your data will be append automatically by column name.

2.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
jthomson
Solution Sage
Solution Sage

The order really shouldn't matter as long as the csv isn't adding in more columns from month to month that moves the columns you want out of the field of view?

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.

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.