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
KarineLago
Advocate I
Advocate I

Stop query refresh with Azure (paste values)

Hi guys!

 

Is there a way to stop this query from refreshing (connecting with Azure cognitive API) everytime I made a change in tables?

It's consuming transactions on Azure every time I close and apply (even when data was already obtained and nothing change in the table with it). I'm looking for something like paste values from Excel (sorry for the poor reference).

 

I need to share the .pbix file too and don't want to let my api key there. I really need an offline data.

 

 

(Source as table) as any =>
let
    JsonRecords = Text.FromBinary(Json.FromValue(Source)),
    JsonRequest = "{""documents"": " & JsonRecords & "}",

    JsonContent = Text.ToBinary(JsonRequest, TextEncoding.Ascii),
    Response =
        Web.Contents("https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/sentiment?",
            [
                Headers = [#"Ocp-Apim-Subscription-Key"= "xxxxxxxxxxxxxxxxxxxxxx",
                           #"Content-Type"="application/json", Accept="application/json"],
                Content=JsonContent 
            ]),
    JsonResponse = Json.Document(Response,1252)
in
    JsonResponse

 

Thanks in advance!

From Brazil? Go to IntelExcel YT channel https://www.youtube.com/user/Intelxcel to learn Power BI.
1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @KarineLago,

 

To stop the Power BI refresh the query, please try to uncheck Include in report refresh in Query Editor.

 

q1.PNG

 

As Power BI query doesn't provide encrypt API key, you can consider opening Advanced Editor and delete that key value, without clicking Apply button, just close the Query Editor. The data in report page should also be available.

 

Personally, as you use just want offline data without refresh, you can export Azure cognitive data to local files such as Excel, then you can get data from the Excel in Power BI desktop, it doesn't use API key or consume transactions.

 

Best Regards,
Qiuyun Yu

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

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @KarineLago,

 

To stop the Power BI refresh the query, please try to uncheck Include in report refresh in Query Editor.

 

q1.PNG

 

As Power BI query doesn't provide encrypt API key, you can consider opening Advanced Editor and delete that key value, without clicking Apply button, just close the Query Editor. The data in report page should also be available.

 

Personally, as you use just want offline data without refresh, you can export Azure cognitive data to local files such as Excel, then you can get data from the Excel in Power BI desktop, it doesn't use API key or consume transactions.

 

Best Regards,
Qiuyun Yu

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

Perfect. Thanks @v-qiuyu-msft!

From Brazil? Go to IntelExcel YT channel https://www.youtube.com/user/Intelxcel to learn Power BI.

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

Top Solution Authors