Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Change filter in report/pbix file with API

Hi,

I'm trying to find out if its possible to change a report filter with the API or another tool.

 

What i'm doing is i created a pbix file and publish this to a workspace. In this pbix i have a filter set like example a filter on the date column.

 

Now through the API i can copy the pbix file and push this to another workspace.

But when its doing this i would like to change a filter in this pbix file.

Is something like this possbile?

 

Kind regards,

 

Benito2313

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have found a way, its not pretty but i think it works. The only thing i need to do is to create a PowerShell script that automates everything.

https://community.powerbi.com/t5/Desktop/Modifying-the-Layout-file-that-is-embedded-in-a-pbix-file/t...

 

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Cute. Keep in mind that the structure of the pbix and obit changes over time with changes to the semantics. Be prepared to modify your code on these occasions.

Anonymous
Not applicable

I have found a way, its not pretty but i think it works. The only thing i need to do is to create a PowerShell script that automates everything.

https://community.powerbi.com/t5/Desktop/Modifying-the-Layout-file-that-is-embedded-in-a-pbix-file/t...

 

lbendlin
Super User
Super User

You can add report level filters to the URL of the newly created report. That will override the defaults from the original report but it will still give the end users the option to modify the filter. 

As far as I know you cannot yet programmatically change the report design.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors