cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerBI-ELM
Helper I
Helper I

Cannot get a line graph based on a pivoted table to auto refresh

Hello,

 

I have a SQL database with a large number of transations from plant sensors.  

  Time, SensorName1,  Value

  Time, SensorName1,  Value

  Time, SensorName2,  Value

  Time, SensorName3,  Value

etc.

 

I can build a line graph ( with a data from a Direct Query), set the filters to a SensorName and it draws nicely and the page refresh works as it should (in my case every 30 seconds)

 

    Time,  SensorName1Value, SensorName2Value

 

Now I want to draw a line graph with two trend lines on it (SensorName1 and SensorName2), so i set up a table, using an import query and use the query editor to pivot it.  The line graph looks ince and refreshes every 30 seconds but in this case the underlying table does not refresh automatically.

 

It is almost as if a table built with an import query does not auto refresh like the direct query one does.

 

Any suggestions?

 

- I have created a view in SQL that pre-pivots the data but I cannot figure how to load it into PowerBI

 

Thanks,

Stephen

 

 

 

 

1 ACCEPTED SOLUTION
otravers
Super User
Super User

Stephen, you guessed right about the source of your refresh issue. Automatic refresh doesn't work for Import sources, but you could merge your DQ and Import tables in a composite model:

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-automatic-page-refresh

 

Import tables have to be refreshed via a dataset refresh, they're not happening in real time and they're limited to 8 a day in shared capacity. 

 

There's nothing special about loading a view, they're listed alongside with tables when you connect to a SQL database, can you elaborate on what the issue is?

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

View solution in original post

1 REPLY 1
otravers
Super User
Super User

Stephen, you guessed right about the source of your refresh issue. Automatic refresh doesn't work for Import sources, but you could merge your DQ and Import tables in a composite model:

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-automatic-page-refresh

 

Import tables have to be refreshed via a dataset refresh, they're not happening in real time and they're limited to 8 a day in shared capacity. 

 

There's nothing special about loading a view, they're listed alongside with tables when you connect to a SQL database, can you elaborate on what the issue is?

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors
Top Kudoed Authors