Forum Discussion
Remove Border from Filter (Visual)
- 2 years ago
Power BI does not have a built-in option to directly remove this border through the slicer settings.
Apply the theme to your report through the "View" tab > "Themes" > "Switch Theme" > "Import Theme".
Here’s an example of how you can adjust slicer properties in a theme file:
{
"name": "Custom Theme",
"dataColors": [],
"visualStyles": {
"*": {
"*": {
"*": {
"slicer": {
"borderColor": "#ffffff", // Change border color to match background for invisibility
"borderStyle": "Solid"
}
}
}
}
}
}
Power BI does not have a built-in option to directly remove this border through the slicer settings.
Apply the theme to your report through the "View" tab > "Themes" > "Switch Theme" > "Import Theme".
Here’s an example of how you can adjust slicer properties in a theme file:
{
"name": "Custom Theme",
"dataColors": [],
"visualStyles": {
"*": {
"*": {
"*": {
"slicer": {
"borderColor": "#ffffff", // Change border color to match background for invisibility
"borderStyle": "Solid"
}
}
}
}
}
}
The json schema has been changed over time (did not check when exactly) but the theme in the accepted answer does not work and gives the following error when importing in Power BI (since Jan 25 release or even earlier):
Validation error(s) at /visualStyles/*/*/*: must be array (type; matching schema #/properties/visualStyles/additionalProperties/properties/*/patternProperties/%5E.%2B%24/type)
(%5E.%2B%24 = ^.*$)
I have not found a solution to change the border color of the dropdown box of the visual slicer and have found not a setting in the json schema either, but I might have overlooked it.