Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi guys,
I'm using pbixrefresh using Python to refresh my PowerBI Dashboard and publish into my account in PowerBI Service.
Now I am trying to audit the number of times that my dashboard is refreshed (the Python script runs every hour).
I can do this using Python but I'm trying a different approach... and my question is to know if is possible using a Insert Into/Output in PowerBI Query. Basically i'm trying this on my dataset:
UPDATE [Reports_HP].[dbo].[TESTE_PBI_UPDATE]
SET [ID] = 1
UPDATE [Reports_HP].[dbo].[TESTE_PBI_UPDATE]
SET [ID] = [ID] + 1
OUTPUT inserted.[ID]
And I can do the audit under SQL side.
But I'm getting this error:
Microsoft SQL: Incorrect syntax near the keyword 'UPDATE'.
Incorrect syntax near ')'.
This is possible?
Thanks!
Solved! Go to Solution.
Hi @Manalytics,
Generally, in Power BI desktop SQL query can only be embedded into a source statement. And it is used to import data not modify.
So it is not possible to do Insert into/update in Power BI desktop. But you can do it at SQL side, then import the table into Power BI desktop.
Thanks,
Xi Jin.
Hi @Manalytics,
Generally, in Power BI desktop SQL query can only be embedded into a source statement. And it is used to import data not modify.
So it is not possible to do Insert into/update in Power BI desktop. But you can do it at SQL side, then import the table into Power BI desktop.
Thanks,
Xi Jin.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 48 | |
| 35 | |
| 31 | |
| 27 |