Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
However, when trying it with below PS Script I am getting errors. Below is the error screenshot
PowerShell Script I'm using:
I really appreciate if someone can help me with the above ask.
Thanks in Advance!
Solved! Go to Solution.
$SQLFile returns an object (the table of the rows for your query result). Now you need to run a ForEach on this to address the individual workspaces.
I played with the script and tried to pass Foreach as you said and it resolved the issue for me
Thanks @lbendlin
$SQLFile returns an object (the table of the rows for your query result). Now you need to run a ForEach on this to address the individual workspaces.
Thanks for the response @lbendlin
If possible, can you please help me with the script to use the ForEach loop for the above ask
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 62 | |
| 47 | |
| 40 | |
| 36 | |
| 23 |
| User | Count |
|---|---|
| 184 | |
| 123 | |
| 106 | |
| 78 | |
| 52 |