cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Reference query not refreshing

I am using Power BI to invoke a stored procedure in Snowflake and display the data. The steps followed are below:

-Created Parameters

-Created Base query calling the stored procedure by passing the parameters from the previous step.

-Created another query to reference the base query and display the data

The entire thing is working as expected in Power BI Desktop. When I publish the report in Power BI Service I am able to do the following:

-Pass Parameters

-Invoke the Base query calling the stored procedure

But the third step which used to display the data is not working. Power BI is not sending the query to the database and refreshing the report.

 

The below is the Base query:

let
Source = Odbc.Query("dsn=SFDB", "call SP (P1,P2,P3)")
in
Output

 

I am using the below query in reference the base query and display the data:

Table1
let
Source = SPQuery,
Output = Odbc.Query("dsn=SFDB", "SELECT C1,C2,C3")
in
Output 

 

Can you tell me if its possible to call reference queries in Power BI Service. Is there any settings to be made in Power BI Service or Desktop to make this run correctly?

I am using a Personal Gateway and ODBC connection. 

1 REPLY 1
Highlighted
Super User IV
Super User IV

Re: Reference query not refreshing

@Manideepa 

 

Make sure Include In Report Refresh and Enable Load are enabled.

Capture.JPG

 

  • Include In Report Refresh means the query is automatically refreshed when you press the "Refresh" button on the ribbon.
  • Enable Load means query results are available for report builder. Otherwise, you may use it in your other queries (for example to merge data), but it is not shown in the report builder.



Regards,
Nandu Krishna

Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 👍

Proud to be a Super User!

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors