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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Creating a custom column with field value populate from another table using M query

Hi all,

 

I am trying to create a custom column in one of the table below (IE36_Append_main) and this custom column is going to populate the value based on another field in another table (i.e. License Plate Relevancy [License Plate Relevant]). Both of the two tables can be linked using Vehicle Type as the key. (see following data model).

 

I am coding the followng style but it doesn't work:

if License Plate Relevancy.[Vehicle Type] = [Veh. Type]

   then License Plate Relevancy.[Licence plate relevant]

else 0

Please help. Thanks. Tuff

F1.JPG

1 ACCEPTED SOLUTION

Hi,

You can simple join the Tables.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

In the IE36_Append_main table, write this calculated column formula

=RELATED(License Plate Relevancy[Vehicle Type])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Aishid

 

I am trying to get the value in the Power Query M and not using Dax.

Do you know how to resolve my issue via Power Query M? please let me know. thanks.

 

Regards,

Yong

Hi,

You can simple join the Tables.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors