Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
I am struggling with updating a Power BI theme json file, as I want to make the font size on the slicer header to default "10" - please note it is the slicer header and not the title. Can anyone help me with that. The code works fine for the title, but not the slicer header.
I have the following code in the json file for the slicer:
Solved! Go to Solution.
Hi @thod ,
Please try changing the json code to:
"header": [
{
"show": true,
"fontColor": { "solid": { "color": "#FFFFFF" } },
"textsize": "10",
"transparency": 0
}
You can refer to the following posts that may be helpful to you:
JSON theme for visual "slicer" with new options in PBI Desktop Version 2022
Use report themes in Power BI Desktop - Power BI | Microsoft Learn
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Neeko,
Unfortunately that didn't help. The slicer header still show the default fontsize at 14 and not 10.
I have both tried with "textsize": "10" and "textSize": "10", but it didn't work.
Do you have other suggestions?
Br.,
Thomas
Great now it works!
I tried to put the statement into the visualStyles property, but after I defined it in the textClasses section it works 🙂
Thank you.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.