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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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