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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
truttafisker
Frequent Visitor

Combine 2 tables from different sources

Hi there

Im quite new to Power BI so please bare with me 🙂

I have an Excel spreadsheet which is a static spreadsheet that I havce used as a datasource (it contains invoices).
Then Im using Jet Analytics as an other datasource which is integrated into power bi using the SQL Server analysis server database.

the Excel files contains al the data from 2019 - 2023, and the SQL Server/Jet Analytics contains all the invoice data from 2024 and as long as we use Business central.

It's not an option to get the old invoice data into BC, and Im not sure if it's an option to combinde the 2 datasources to 1 table in Jet analytics.

But for some reason I can't combine these 2 datasources in Power Bi and make 1 table ..

are there any solution to my problem in Power Bi ?

Please feel free to ask any questions if it doesn't make sense what Im trying to do ..

4 REPLIES 4
truttafisker
Frequent Visitor

I actually found this post .. https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-multiple-tables-with-uneven-co...

and it seems to being able to do the trick .. 
My only concern is .. If i make my own table like this, will the "new" table's data also being updated, when the data from the SQL server is being updated ??

Hi, @HotChilli 

Thanks for your concern about this issue.

 

Hi, @truttafisker 

I am glad to help you.  

 

According to your description, you want to know will the "new" table's data also being updated, when the data from the SQL server is being updated?

 

If I understand you correctly, then you can refer to my solution. 

 

First, you need to confirm that your 2024 data is loaded into Power BI Desktop. If you have successfully loaded it in, you can theoretically find this corresponding Table in the Merge page.


Of course, as you said you found a solution in the community using DAX, which is also possible.


Regarding the question of whether the new table will be refreshed when the data in SQL Server is refreshed, you have to make sure that the data in SQL Server exists on-premises first.

If it is on-premises, you have to install and configure the corresponding on-premises data gateway to ensure that the data can be refreshed normally.

 

This are some official documentation, hope help you: 

DirectQuery in Power BI - Power BI | Microsoft Learn 

Data refresh in Power BI - Power BI | Microsoft Learn 

Automatic page refresh in Power BI Desktop - Power BI | Microsoft Learn 

Manage a SQL Server data source - Power BI | Microsoft Learn

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.


Best Regards,
Fen Ling,


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

HotChilli
Super User
Super User

"But for some reason I can't combine these 2 datasources in Power Bi and make 1 table" - What method are you using? How far have you got?

I've tried the "merge" function but none of the tables (other than my excel files) shows up in the tables to choose from,.

 

Screenshot 2024-07-17 at 13.05.53.png

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.