Forum Discussion
Power BI Theme File for the Guage
Hi,
I have been trying to create a theme file for a Gauge Visual.
The Colours I need are as below
FILL: - #08FF08 - Vibrant, Vivid Green Color
TARGET: - #FFA400 - Vivid Orange
TARGET VALUES: - #024002 - Olive Green
CALLOUT VALUES: - #FA0000 - Red
I am unable to get the FILL colour into the THEME file. Have also tried to have the below in the theme file to no AVAIL
- firstLevelElements
- secondLevelElements
- thirdLevelElements
- fourthLevelElements
- secondaryBackground
Any help on this would be greatly appreciated
- Anonymous1 year ago
Hi arkr74 ,
1) Please check the report theme JSON using a different .PBIX file to determine and isolate whether the issue is related to the current PBIX or to the JSON itself.
2) Please try applying the same report theme JSON to a different visualization to see whether the issue is specific to the Gauge visual or related to the report theme JSON itself.
3) Can you please confirm if you are using the latest version of the Power BI Desktop.
I hope this information helps. Please do let us know if you have any further queries.
Thank you
7 Replies
- HarishKM
Super User
arkr74 Hey,
I will refer this webpage to create a theme as per my requirement - BIBB | Power BI Theme Generatoryou can also refer this channel -Power BI: Format the dial of a gauge chart | Use the custom theme colour for dial colour
Thanks
Harish M
Please accepts this as a solution if it is solve your problem and give kudos as well
- AnonymousNot applicable
Hi arkr74 ,
Thanks for reaching out to the Microsoft fabric community forum.
1) Reset Visual Formatting Overrides: This step involves resetting visual formatting overrides. Manually applied colours within the Gauge visual can override those defined in your theme, preventing your custom colours from appearing as expected. To resolve this, click on the Gauge visual, navigate to the Format Pane, then to the Visual section, and select Revert to default. This action clears any locally applied formatting and allows the theme-defined styles to take effect properly.
2) Ensure JSON Syntax Is Valid: A malformed JSON file can silently fail without providing clear error messages in Power BI, leading to theme settings not being applied correctly.
Additionally, ensure that all colour codes are proper hex values (for example, #08FF08) and are enclosed in quotation marks as strings.
3) Use the Latest Version of Power BI Desktop: Ensure you are using the latest version of Power BI Desktop, as theme functionality is often improved or updated in newer releases. Older versions may not recognize certain theme properties or apply them correctly. You can download the latest version directly from the official Power BI website. Using the most recent version ensures maximum compatibility with theme features and visuals.I hope this information helps. Please do let us know if you have any further queries.
Thank you - AnonymousNot applicable
Hi arkr74
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.
Thank you. - AnonymousNot applicable
Hi arkr74
May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.
Thank you- arkr74New Member
Hi Apologies for the delay.
My JSON is well formed and there are no issues with the JSON, else i would get an error and the other Visual and font will not be displayed correctly, which they display as intended. Its only the the FILL colour in the GAUGE.
I did reset all the visuals and still its only the FILL in the Gauge that does not work
- AnonymousNot applicable
Hi arkr74 ,
1) Please check the report theme JSON using a different .PBIX file to determine and isolate whether the issue is related to the current PBIX or to the JSON itself.
2) Please try applying the same report theme JSON to a different visualization to see whether the issue is specific to the Gauge visual or related to the report theme JSON itself.
3) Can you please confirm if you are using the latest version of the Power BI Desktop.
I hope this information helps. Please do let us know if you have any further queries.
Thank you
- AnonymousNot applicable
Hi arkr74 ,
As we haven’t heard back from you, we wanted to kindly follow up to check if the suggestions provided by the community members for the issue worked. Please feel free to contact us if you have any further questions.
Thanks and regards