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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Merge or append 2 queries (in direct query mode)

Hello,

 

I would like to combine some data from 2 differents tables in direct query mode.

The objective is to get sales from table 2 to table 1, for only 1 specific shop (see example below).

 

I tried Amend function but not working in direct query mode. 

And merge doesn't seems my solution since in reality, my tables headers are different.

 

Do you have any other suggestion? 

Thank you!

 

Example :

 

 

exampleexample

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Do you have the latest version of Power BI Desktop? You can append the queries in the Query Editor after changing the column names. 

Another solution is using DAX. Maybe this one like below.

Table =
UNION (
    SELECTCOLUMNS (
        st2,
        "Date", [Date],
        "Day", [Dayz],
        "Month", [Month],
        "Value", [Value],
        "Year", [Year]
    ),
    SELECTCOLUMNS (
        table2,
        "Date", [date2],
        "Day", [Dayz],
        "Month", [Month],
        "Value", [Value],
        "Year", [year2]
    )
)
  

 

 

Best Regards,

Community Support Team _ Dale
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

3 REPLIES 3
supsinha_pbi
Frequent Visitor

Even Union in DAX create table in import mode. I need the resultant table to be in direct query mode only  @v-jiascu-msft

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Do you have the latest version of Power BI Desktop? You can append the queries in the Query Editor after changing the column names. 

Another solution is using DAX. Maybe this one like below.

Table =
UNION (
    SELECTCOLUMNS (
        st2,
        "Date", [Date],
        "Day", [Dayz],
        "Month", [Month],
        "Value", [Value],
        "Year", [Year]
    ),
    SELECTCOLUMNS (
        table2,
        "Date", [date2],
        "Day", [Dayz],
        "Month", [Month],
        "Value", [Value],
        "Year", [year2]
    )
)
  

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

hello @v-jiascu-msft,

 

Thanks for your advice, I will use it accordingly (in DAX).

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors