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

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.
Anonymous
Not applicable

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.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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