- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Power BI Embedded replace a value of one filter out of 5
Hi,
How ( and best pratice ) to get filters ( actually 5 filters report on our reports ) , remove one filter only and add the new value , or replace directly the value just for this filter ?
and keep the 4 others filter.
And the filters are of different types.
And it is possible on pagefilter ?
Thanks for your helps.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am assuming you are talking about report level filters.
What you can do is use getFilters() to get the current filters array.
Then if you want to modify the value of the filter just modify the value within the array.
You can use the constructors to create a new filter and add in the array.
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters#constructing-filters
Similarly you can remove the filter from the array.
Once you are done with the modifications, you can pass the updated array to the report using setFilters() function.
You can do the same for page and visual level filters too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am assuming you are talking about report level filters.
What you can do is use getFilters() to get the current filters array.
Then if you want to modify the value of the filter just modify the value within the array.
You can use the constructors to create a new filter and add in the array.
https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters#constructing-filters
Similarly you can remove the filter from the array.
Once you are done with the modifications, you can pass the updated array to the report using setFilters() function.
You can do the same for page and visual level filters too.
Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Microsoft Fabric Community Conference 2025
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
Subject | Author | Posted | |
---|---|---|---|
02-21-2024 10:12 AM | |||
07-05-2023 09:08 AM | |||
05-29-2024 01:51 AM | |||
10-10-2023 01:48 AM | |||
04-04-2024 12:45 AM |
User | Count |
---|---|
9 | |
1 | |
1 | |
1 | |
1 |