Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I'm trying to get a value (Team) from one table (Team List) to pull through to a new column in a second table (Target List) based on two columns within both tables (Name and Month) which should match.
A rough sample of the data is as follows:
Team List
| Name | Month | Team |
| Ryan | Jan | 1 |
| Ryan | Feb | 1 |
| Ryan | Mar | 1 |
| Ryan | Apr | 1 |
| Ryan | May | 1 |
| Ryan | Jun | 1 |
| Ryan | Jul | 2 |
| Ryan | Aug | 2 |
| Ryan | Sep | 2 |
| Ryan | Oct | 2 |
| Ryan | Nov | 2 |
| Ryan | Dec | 2 |
Target List
| Name | Month | Target | Team |
| Ryan | Jan | 10000 | |
| Ryan | Feb | 10000 | |
| Ryan | Mar | 10000 | |
| Ryan | Apr | 10000 | |
| Ryan | May | 10000 | |
| Ryan | Jun | 10000 | |
| Ryan | Jul | 10000 | |
| Ryan | Aug | 10000 | |
| Ryan | Sep | 10000 | |
| Ryan | Oct | 10000 | |
| Ryan | Nov | 10000 | |
| Ryan | Dec | 10000 |
I have tried the following DAX using the LOOKUPVALUEFUNCTION but, although doesn't return an error, isn't pulling through the correct data:
Team = LOOKUPVALUE('Team List'[Team],'Team List'[Name],[Name],'Team List'[Month],[Month])
That is giving me the result of:
Target List
| Name | Month | Target | Team |
| Ryan | Jan | 10000 | 1 |
| Ryan | Feb | 10000 | 1 |
| Ryan | Mar | 10000 | 1 |
| Ryan | Apr | 10000 | 1 |
| Ryan | May | 10000 | 1 |
| Ryan | Jun | 10000 | 1 |
| Ryan | Jul | 10000 | 1 |
| Ryan | Aug | 10000 | 1 |
| Ryan | Sep | 10000 | 1 |
| Ryan | Oct | 10000 | 1 |
| Ryan | Nov | 10000 | 1 |
| Ryan | Dec | 10000 | 1 |
Why is it not picking up that Team should be '2' from July onwards? Very confused by this and not sure where I'm going wrong.
sure I can try to look at it.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@dom-mitchell I just did with your sample data and it works, see attached Power BI file.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Yeah, it looks to be the same as mine but for some reason, mine just doesn't pull the data through correctly.
Could I email you the PBIX? Don't really want to put it up here for download.
@dom-mitchell what is that relationship? Is that relationship with both the tables? Please provide more details on the model, it is not something you are doing wrong using lookupvalue it is the relationship which is causing the issue and without having full details it is hard to provide any solution.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Thanks for the help so far @parry2k .
I've attached a screenshot of the relationship view.
I'm tempted to upload the pbix but it contains significant company data which is a worry for me to put up here.
@dom-mitchell and if there is a relationship, delete the relationship and then it should work.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
I've now tried it with no relationship between the tables and it still isn't pulling the values thorugh correctly. Same result as with the relationship.
@dom-mitchell is there any relationship between these tables?
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
There is a relationship via third table which needs to be there to make soemthing else in the report work.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.