# Power BI - Get reports with SQL text

**URL:** <https://forums.powershell.org/t/power-bi-get-reports-with-sql-text/24481>\
**Category:** PowerShell Help\
**Created:** [July 23, 2024, 2:01pm UTC](https://forums.powershell.org/t/power-bi-get-reports-with-sql-text/24481 "2024-07-23T14:01:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HsbHsb](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@HsbHsb](https://forums.powershell.org/u/HsbHsb)\
**Post date:** [July 23, 2024, 2:01pm UTC](https://forums.powershell.org/t/power-bi-get-reports-with-sql-text/24481/1 "2024-07-23T14:01:58Z")

</div>

Is there a way through Powershell to get a list of reports that have text populated in the SQL statement field? I don’t care if its direct query or import, I need to find all reports that are using a SQL statement.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/1/14e3b08a217d33b92c9517bc1b53c0678d595186.png)

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [July 24, 2024, 3:51pm UTC](https://forums.powershell.org/t/power-bi-get-reports-with-sql-text/24481/2 "2024-07-24T15:51:39Z")

</div>

It’s not clear what things you’ve tried. Perhaps take a look at [Power BI Cmdlets reference | Microsoft Learn](https://learn.microsoft.com/en-us/powershell/power-bi/overview?view=powerbi-ps) and see what’s possible. Looks like they have a reports module and a command [Get-PowerBIReport (MicrosoftPowerBIMgmt.Reports) | Microsoft Learn](https://learn.microsoft.com/en-us/powershell/module/microsoftpowerbimgmt.reports/get-powerbireport?view=powerbi-ps)

There’s a filter option on it, no clue what’s possible as I don’t work in Power BI really.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [August 23, 2024, 3:51pm UTC](https://forums.powershell.org/t/power-bi-get-reports-with-sql-text/24481/3 "2024-08-23T15:51:52Z")

</div>

Closed on August 23, 2024, 3:51pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
