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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
sdukes_88
Frequent Visitor

SQL Collate causing lag?

Hi,

 

I am struggling with an issue I have.

 

We are a College which merged with another college and I am doing a chart with 3 years of student numbers. Easy right?

 

Trouble is 2014, 2015 & 2016 data (a) comes from one source and 2014 & 2015 (b) another source (the old college student numbers).

 

My data is a direct query into PowerBi via a SQL view and I have optimised the SQL query as much as I can.

 

(a) contains 1,160 summarised rows and (b) contains 74 summarised rows.

 

Because (b) came from a different SQL collation I am summarising (a) and using UNION ALL to join to (b) with COLLATE

 

My problem is when you add a slicer and try and select by site any data in (a) loads relatively OK in terms of speed but (b) data just lags and takes far too long from a SQL query/view which takes 6 seconds to run in SSMS.

 

I don't know what I can do to get the data working - any help appreciated!

 

Thanks

Simon

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sdukes_88,

 

You can try to use query editor to analysis with these records and create a new table, then use analysed table as the source of slicer, it may improve the performance.

 

In addition, you can also try to modify the table structure to improve the performance.

 

Reference links:
How to make a union view execute more efficiently?

Cross Database Unions

 

Regards,
Xiaoxin sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @sdukes_88,

 

You can try to use query editor to analysis with these records and create a new table, then use analysed table as the source of slicer, it may improve the performance.

 

In addition, you can also try to modify the table structure to improve the performance.

 

Reference links:
How to make a union view execute more efficiently?

Cross Database Unions

 

Regards,
Xiaoxin sheng

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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