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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

MERGE TABLES BY USING DAX(without power Query editor)

I have two tables (1.organisation having columns  -organisation id(number),organisation code(string),region 2. sales having columns - organisation id (number),product organisation id(number)).

Table.PNGorganisation table.PNGsales table.PNG

i want a table visulas in which all the product organisation id has to be shown in codes(string-which means it should be mapped to organisation code)instead number format.how can i merge those two to get the result by using DAX

 

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

Hi @Anonymous ,

 

You could duplicate the "organisation" and create relationships between new table and "sales" table. Then use RELATED() function to show the result.

2-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could duplicate the "organisation" and create relationships between new table and "sales" table. Then use RELATED() function to show the result.

2-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
NikitaDalela
Helper II
Helper II

Hi @Anonymous ,

I have created a new table from Sales table and then looked up 'organization code' from Organization table.

DAX:

To create new table: New Table = (Sales)

To look up organization code = 

Organization Code = LOOKUPVALUE(Organization[Organization Code],Organization[Organization id],'New Table'[Organization id])

 

TsbleUsingDAX.JPG

 

TableUsingDAX1.JPG

 

TableUsingDAX2.JPG

 

Hope this helps!

 

Thanks.

amitchandak
Super User
Super User

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

 

Anonymous
Not applicable

there  is a tabular visual in the provided picture having organisation id,organsation code and product organisation id..in the product orgnaistion id columns i want codes like (IND,AUS) instead of numbers (1,2,3,..)..for that im asking how to merge/combine tables to get it in DAX

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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