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 an import table with direct query table

Hi community,

 

I want to know if it is possible to merge a direct query table with an imported table, if not possible do you have other alternatives ? What I want is to retrieve on column from my imported table to my direct query table 

 

 

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

Sheet1 is the Import table:

vyangliumsft_0-1627009383991.png

The table sysdiagrams is a Direct Query table:

vyangliumsft_1-1627009383994.png

Experiment: Insert the [group] of the Import table into sysdiagrams

1. You cannot use Merge Queries to merge the Import table with the Direct Query table

vyangliumsft_2-1627009384000.png

The following error will appear:

vyangliumsft_3-1627009384001.png

For specific explanations, you can check the following related links:

https://community.powerbi.com/t5/Desktop/Direct-Query-Mode-merging-queries-as-new-query/m-p/612961

https://community.powerbi.com/t5/Desktop/Append-operation-in-quot-Edit-Query-quot-with-the-mode-Direct/td-p/86394

 

2. You can use the Lookvalue function to achieve

Create measure.

Import_Group = LOOKUPVALUE('Sheet1'[group],Sheet1[version],MAX('sysdiagrams'[version]))

Result:

vyangliumsft_4-1627009384002.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

THANKS @Anonymous  🙂

Anonymous
Not applicable

Hi  @Anonymous ,

Sheet1 is the Import table:

vyangliumsft_0-1627009383991.png

The table sysdiagrams is a Direct Query table:

vyangliumsft_1-1627009383994.png

Experiment: Insert the [group] of the Import table into sysdiagrams

1. You cannot use Merge Queries to merge the Import table with the Direct Query table

vyangliumsft_2-1627009384000.png

The following error will appear:

vyangliumsft_3-1627009384001.png

For specific explanations, you can check the following related links:

https://community.powerbi.com/t5/Desktop/Direct-Query-Mode-merging-queries-as-new-query/m-p/612961

https://community.powerbi.com/t5/Desktop/Append-operation-in-quot-Edit-Query-quot-with-the-mode-Direct/td-p/86394

 

2. You can use the Lookvalue function to achieve

Create measure.

Import_Group = LOOKUPVALUE('Sheet1'[group],Sheet1[version],MAX('sysdiagrams'[version]))

Result:

vyangliumsft_4-1627009384002.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

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