The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Description:
I’ve encountered a limitation when customizing the Card (New) visual in Power BI using the Theme JSON file. There are two specific settings that do not appear to be exposed in the Theme JSON configuration options:
Visual > Cards > Background (under Cards settings):
This setting does not change when modifying the theme using "visualStyles" as per Microsoft’s Theme JSON documentation.
Visual > Cards > Border (under Cards settings):
Similarly, the border setting under Cards is not impacted by any Theme JSON configuration options.
Expected Behavior:
Both the Background and Border for Visual > Cards should be configurable through the Theme JSON file, similar to other visual properties.
Steps to Reproduce:
Request:
Please expose the missing Visual > Cards > Background and Border settings for customization in the Theme JSON configuration or clarify how they can be modified if they are already available but undocumented.
Additional Context:
Power BI Version: 2.138.1203.0 64-bit (November 2024)
Theme JSON Used: reportThemeSchema-2.138.json
Solved! Go to Solution.
Hi everyone,
I wanted to follow up on my previous question regarding the Background and Border settings under the Cards section for the Card (New) visual in Power BI. After further investigation and with a helpful response from the community, I found the root cause.
The issue stems from the inconsistent naming conventions used in the Theme JSON file for these settings:
By using these specific property names in the Theme JSON, I was able to successfully modify the visual settings under Visual > Cards.
Hi everyone,
I wanted to follow up on my previous question regarding the Background and Border settings under the Cards section for the Card (New) visual in Power BI. After further investigation and with a helpful response from the community, I found the root cause.
The issue stems from the inconsistent naming conventions used in the Theme JSON file for these settings:
By using these specific property names in the Theme JSON, I was able to successfully modify the visual settings under Visual > Cards.
Hi @sufinameh - Unfortunately, as of now, the Visual > Cards > Background and Border settings are not exposed for direct modification through the Theme JSON file, as you've already observed. These settings are likely managed separately from the general Background and Border settings.
Since this is a limitation of the Power BI platform, I recommend submitting a feature request via the Power BI Ideas forum or contacting Microsoft Support using above link.
Hope this helps.
Proud to be a Super User! | |
Thank you for your comment, @rajendraongole1. I initially thought the same, but after much trial and error, I found a solution that I will share it.
@sufinameh are you able to share a copy of the json where you were able to adjust this? I am struggling to get to the surface the fillCustom to update the background of the cards.