Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Problems with change of color when publishing report

Hi!

 

I have a dashboard to which i pin a couple of visuals from a number of reports. I have a "KPI" visual where the "goal" number is coloured in orange in the original report. When pinned to the dashboard, the "goal" colour changes automatically from orange to black. Anyone who knows how to solve this automatich colour change? 

 

Thanks, 

 

Fredrik

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

I found the workaround: please use the format panel to change the goal color:

08.PNG

Works fine in service as well:

09.PNG

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

7 REPLIES 7
parry2k
Super User
Super User

@Anonymous 

@Anonymous did you selected current theme option when pinning the visual

 

image.png



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hi,

 

Yes i did. And only on the KPI visuals this problem occurs, not other visuals. Seems be some kind of bug..

Hi @Anonymous 

 

How did you set the font color of "Goal"? could you please kindly share your dummy pbix/the procedure involved?

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

The thing is that a few weeks ago the color in the "goal" number in the desktop report followed into a dashboard. Since two weeks something has happened, where as i said, the color automatically changes to black. We tried adding a goal colour in the JSON file, but this did'nt work. 

 

The part related to KPI in the JSON file looks as following: 

"visualStyles":{
"kpi":{
"goals":{
"fontSize": 10,
"fontFace": "Segoe UI",
"color": "#E6E6E6"

Hi @Anonymous 

 

Could you please kindly share your JSON file/pbix that I can test it on my side? I created a JSON file using your code, but the goal shows black on desktop as well as the service.

Probably it's a bug and I'll raise it to the internal team for deep research. 

 

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

Hi!

 

Cool, thanks! 

 

 

 

See the JSON script below:

 

{
"name": "xxxxx",
"dataColors": ["#ffa02f", "#ffd553", "#72c6ef", "#a6ce39", "#ed145b", "#00aed8", "#939f1b", "#374649"],
"background":"#374649",
"foreground": "#ffa02f",
"tableAccent": "#E6E6E6",
"textClasses": {
"callout": {
"fontSize": 40,
"fontFace": "Segoe UI",
"color": "#ffa02f"
},
"title": {
"fontSize": 9,
"fontFace": "Segoe UI",
"color": "##E6E6E6"
},
"header": {
"fontSize": 9,
"fontFace": "Segoe UI",
"color": "#E6E6E6"
},
"label": {
"fontSize": 9,
"fontFace": "Segoe UI",
"color": "#E6E6E6"
}
},
"textClasses": {
"label": {
"lightLabel":{
"fontSize": 9,
"fontFace": "Segoe UI",
"color": "#E6E6E6"
}
}
},
"visualStyles":{
"kpi":{
"goals":{
"fontSize": 10,
"fontFace": "Segoe UI",
"color": "#E6E6E6"
}
}
}
}

Hi @Anonymous 

 

I found the workaround: please use the format panel to change the goal color:

08.PNG

Works fine in service as well:

09.PNG

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.