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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Merged Queries

Hi All,

I need to understand how to use merged queries so that only 1 column is used to display data from 2 tables.

For ex Table1.VendorID merged with Table2.VendorID with full outer join.

 

If I use Table1.VendorID in Table visual it would show all data from Table1 but only matching data form Table2 and other way if I select Table2.VendorID

 

How can I use vendor column in report so that all data from Table1 and Table2 is displayed irrespective data is avialble or not?

 

Any thought here please.

 

Thanks

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous,

Perhaps you can try to create a calculated table to union two table key column values and add custom column fields to lookup correspond field values from two tables based on the key field.
Regards,

Xiaoxin Sheng

darentengmfs
Post Prodigy
Post Prodigy

Hi @Anonymous 

 

Create a new column in either DAX or M.

 

Given that you name your first Vendor ID column as VendorIDTable1 and the second Vendor ID column VendorIDTable2:

 

In DAX, use this formula:

VendorID-All = IF(ISBLANK([VendorIDTable1]),[VendorIDTable2],[VendorIDTable1])

 

In M, use this formula:

VendorID-All = if [VendorIDTable1] = null then [VendorIDTable2] else [VendorIDTable1]

 

These 2 formulas should fill up the Vendor IDs.

AnkitKukreja
Super User
Super User

Hi @Anonymous 

 

It should not be very tough to crack, please share your pbix file after deleting any pii data.

I can have a look at it and will let you know about the solution for the same.

 

Thanks,
Ankit Kukreja

LinkedIn 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.