Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
We are able to retrieve activity logs using "Get-PowerBIActivityEvent" but it is returning the activity logs for all workspaces in the tenant. I see only side parameters like -UserId and -ActivityType are available for ‘Get-PowerBIActivityEvent’ for filtering data. My requirement is to retrieve/filter data based on parameters like Workspaces names or Workspace Owner names. please help to advise on the possibilities.
Hi @urraghu ,
I'm afraid that there are no such filters on activity logs. I suggeste create an idea for it in https://ideas.powerbi.com/forums/265200-power-bi-ideas to improve the power bi.
Best Regards,
Dedmon Dai
It can be done using something like this
$allAudits = Get-PowerBIActivityEvent -StartDateTime $pivotDate.ToString("s") -EndDateTime $pivotDate.AddHours(24).AddSeconds(-1).ToString("s") -ActivityType "ViewReport" | ConvertFrom-Json
$audits = $allAudits | Where-Object { $_.WorkspaceName -eq "your_workspace_name" }
We have a requirement to pull these logs on a weekly basis (and filter data based on Workspace name/owner). Any inputs on automating such requirement?
Currenlty that does not allow you to filter data based on Worksapce owner as this is user activities logs.
I would suggest to pull the data and filter it based on your requirement in next step. (i.e. workspaceid)
If this post helps, then please consider Accept it as the solution and give it a thumbs up
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
25 | |
18 | |
18 | |
13 | |
12 |
User | Count |
---|---|
35 | |
22 | |
21 | |
18 | |
12 |