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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PBILover
Helper V
Helper V

merged queries in power BI desktop

Hi,

I have one Cosmos main table, old Master data  for old clients in SQL , and new master data  table for new clients  from cosmos.

 

In the main table , there is one field named as abc, if abc is null then i am taking  client data from SQL  else from cosmos.

Ciurrently i am achieving this by using Merged query in poweer bI desktop but looks like it is affecting data loadperformance .

Is there any way to achieve this  without merging queries.

 

Thank you

6 REPLIES 6
v-diye-msft
Community Support
Community Support

Hi @PBILover 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly. If not, please kindly elaborate more. thanks!

 

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

HI @v-diye-msft 

 

 Sadly not, Currently i am using the merging at MQuery as i was doing previously but my observation is that sometimes it is taking more time to data refresh, and if the merging columns are having duplicates then it will go in infinite loop.

 

We can merge the columns by using Dax (by using related or naturalleftJoin function) but i am not sure about performance,

 

Thank you,

Namita

amitchandak
Super User
Super User

@PBILover , Power query is a good place to do that. Merge and Append are two options. When you say old, does data get refreshed full every time from both databases?

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

See if you can configure incremental on Database.

Refer this, if it can help in improving performance

https://www.thebiccountant.com/2016/11/08/speed-powerbi-power-query-design-process/

Thanks Amit.

In my scenario, i need to use merge query and which is causing performance issue.

yeah everytime i am refreshing data it does refreshed data in both databases.

I am trying to implement the incremental data refresh on main table , but for only 14,00000 data it is stuck on evaluating mode for more than 1 hour so i have to kill it.

 

 

 

mahoneypat
Employee
Employee

If the datasets contain the same columns, it will be much faster to append them.  From there, you can remove duplicates, filter nulls, or do more advanced logic if needed.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thanks for your reply Pat.

Unfortunately no. As main table is having transactional data while other tables are Master Tables.

Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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