cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
rixmcx59 Helper III
Helper III

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

Accepted Solutions
Community Support
Community Support

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

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

5 REPLIES 5
AClerk Solution Sage
Solution Sage

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

Hey @rixmcx59 

Did you try using Lookupvalue?

Ta

rixmcx59 Helper III
Helper III

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

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

Community Support
Community Support

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

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

rixmcx59 Helper III
Helper III

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

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.

rixmcx59 Helper III
Helper III

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

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

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors