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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rixmcx59
Helper IV
Helper IV

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

5 REPLIES 5
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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