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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
rixmcx59
Helper V
Helper V

Get a value from another table in M query. Related() or lookup or?

Hello all, I have an Azure Usage table with some resources do not have a value in the tags column (Blank).

 

I have another table with resource groups and the proper tags for those groups, can I use the advanced editor to join on resource group and populate the blank tags in the usage table.

 

The related field would be resource group=resourcegrouplkup

 

Right now I have modified the "Replace Values" step to use "each if, then, else" but it's getting very messy and long and not sure if there is a limit to the if's or's. 

 

Thanks

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

Hi @rixmcx59 ,

 

Hope this blog could help you. If it doesn't meet your requirement, kindly share your sample data and excepted result to me. Please upload your files to One Drive and share the link here.

 

Regards,

Frank

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

6 REPLIES 6
vspowerbi
Frequent Visitor

The Solution link goes to 404 Error.

It's always best practice to write out the solution within the Message Forum, rather than pointing to an external link that ends up getting lost / shut-down.

v-frfei-msft
Community Support
Community Support

Hi @rixmcx59 ,

 

Hope this blog could help you. If it doesn't meet your requirement, kindly share your sample data and excepted result to me. Please upload your files to One Drive and share the link here.

 

Regards,

Frank

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

Frank, thanks for the post, the custom VLookUp function works just fine.

Hello, thanks for the respose, my organizational account does not allow access to one drive? I will look into my icloud, I think I can share files from there.

 

If I share my pbix will it be of any use? the data connections are using my credentials to connect to Azure Consumption Insights connector.

Anonymous
Not applicable

Hey @rixmcx59 

Did you try using Lookupvalue?

Ta

I am looking for a solution in M language, not DAX. I want to do this in the advanced query editor. Thanks

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors