Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello. Ask for help.
I'm taking data from the API through a function. If the data is not ready, the API gives the message "Your report is not ready yet, try to update it later". Then I need to wait 10-20 seconds and update the request. Sometimes I need to update 2-3-5 times, depending on the amount of data.
Is it possible to loop the query until it returns data instead of the phrase "Your report is not ready yet..."? And can I set a pause between requests?
let Source = PQYD(Date_and_API{0}[APID], null, "Date,Impressions,Clicks,Ctr,Cost,AvgCpc,AvgClickPosition,CampaignName,AdGroupName,Criteria,AdNetworkType,LocationOfPresenceName", "CRITERIA_PERFORMANCE_REPORT", Date_and_API{0}[30 days ago], Date_and_API{0}[Yesterday]) in #"Source"
After a few updates
Solved! Go to Solution.
@ermak ,
Power query supports loop/iteration but doesn't support function like pause/sleep, about the workaround, I would suggest you to refer to similar thread:
https://community.powerbi.com/t5/Desktop/Query-to-Scrap-URLs-with-a-pause-every-xx-URLs/td-p/352809
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ermak ,
Power query supports loop/iteration but doesn't support function like pause/sleep, about the workaround, I would suggest you to refer to similar thread:
https://community.powerbi.com/t5/Desktop/Query-to-Scrap-URLs-with-a-pause-every-xx-URLs/td-p/352809
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
98 | |
91 | |
84 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |