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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I've just started using PowerShell and the REST APIs / cmdlets to pull Power BI data...and I'm finding cases where a command returns duplicate records. For example, if I run the following commands (where $workspace.Id is the value for a given workspace):
Connect-PowerBIServiceAccount
Get-PowerBIDataset -Scope Organization -WorkspaceId $workspace.Id
I sometimes see the same dataset listed twice. Every attribute on both listing is exactly the same including the Dataset ID...and I don't see two datasets with the same names when looking through the Power BI service.
Does anyone know why I might be getting duplicates? It's not just on datasets, I think I've seen this behavior on other types of objects as well. This is making some of the PowerShell scripting more complicated (especially as I know very little Powershell...)
Thanks!
Scott
I am having same issue , how to filter and get only 1?
Regards
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |