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
Anonymous
Not applicable

Fill New column based on value in excel sheet

Hi guys, newbie here.

1.PNG

I have a table in my PowerBi where each employee ID is repeated as many times as I have days in my project. 

 

I was told I need to add a column to this table and given an excel sheet. ( Need to incorporate the second columns of this excel sheet to my powerBI matching the IDs with the Control Budget Weeks number associated with it)

2.PNG

Each unique ID is associated with the number of this second excel column.

Is there a formula to automate that? When the ID is repeated in my PowrBi, the same number of control budget weeks need to go there in that new column.

 

Sorry for the long text, tried to be as thorough as possible.

and thanks in advance!

Ouss

 

2 ACCEPTED SOLUTIONS
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may use Merge Queries (Table.NestedJoin) in Query Editor or LOOKUPVALUE Function in DAX.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @Anonymous ,

 

The difference between the two:

 

Merge Queries are done in POWER QUERY.

and you are joining the tables.

 

LookupValue is done in DAX.

and you are not literally joining the tables.

 

You can also try both to see the difference and see which one you are comfortable to use.

 

 

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may use Merge Queries (Table.NestedJoin) in Query Editor or LOOKUPVALUE Function in DAX.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks for replying!

Is there a difference between both? I know vlookup in excel. Is is similar? 

Hi @Anonymous ,

 

The difference between the two:

 

Merge Queries are done in POWER QUERY.

and you are joining the tables.

 

LookupValue is done in DAX.

and you are not literally joining the tables.

 

You can also try both to see the difference and see which one you are comfortable to use.

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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