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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Problems while querying the data

Hi everyone,

I need to access a database every day to check the weight of a production line that is connected to an online server. The wheight system sends every weight data directly to the server.

 

However, when I update the query or change the filter of my powerbi sheets, the scales stop due to an error sending the data.

 

Are there any changes I can make to the data query to solve this issue? Because I can't stop the production line every time I need to query data.

Thank you.

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

You can refer to this doc about creating a view in SQL Server. Then connect Power BI to this view. 

CREATE VIEW (Transact-SQL) - SQL Server | Microsoft Docs

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Thank you all!

 

The problem was solved by creating a view of the records table.

KNP
Super User
Super User

There's really not enough information to answer this, but, if I had to guess, you could try changing to 'Import' mode if you are currently using 'Direct Query' mode.

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!
Anonymous
Not applicable

Thank you, but i cant work in "Import" because there is too much data.


I think the problem is related with the fact the scales are writing is in the same sql table that the power bi is reading. 

 

I have an idea that in the older sql the problem was solved by creating an auxiliary table (view table) in sql, but I don't remember how to do it.

 

Thank you

Hi @Anonymous 

 

You can refer to this doc about creating a view in SQL Server. Then connect Power BI to this view. 

CREATE VIEW (Transact-SQL) - SQL Server | Microsoft Docs

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

How much is "too much" data?

It sounds very much like you're running into table locking issues or something similar. 

The query that you are running, how long does it take to complete if you run it in SQL?

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.