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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
KarineLago
Advocate I
Advocate I

Break connection and remaing with data (paste values)

Hi guys,

 

I've created a query to pull data from cognitive API from Azure (following Gil's DataChant article). Now that I have the data analized, I want to break the connection with Azure, but remaing with the data (offline) because every time I do a query change, all data in all tables refresh again and it's consuming Azure queries (text recognition allows 5.000 queries per month).

 

I already did everything I could and results in ERROR. How can I break the connection with the query below without losing the data I've obtained?

 

(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

 

My api key was modified by xxxxxxxxxxxx to ask this doubt here.

 

Thanks in advance!

 

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

Hi @KarineLago,

 

Could you try disabling "Include in Report Refresh" for the query in Query Editor to see if it works in this scenario? Smiley Happy

 

image

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @KarineLago,

 

Could you try disabling "Include in Report Refresh" for the query in Query Editor to see if it works in this scenario? Smiley Happy

 

image

 

Regards

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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