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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Create data Color in JSON by Value/Category

I Guys!

 

It is possible to define in a JSON theme the color for data colors values?

I Have some report to construct with the same colors for some category and is more easy to have all this "color rules" in the JSON and dont edit each visual with all colors.

Ror exemple every time i have the category "X" the data color is blue, if "Y" is red...

 

Thanks

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

After my tests, it is impossible because you cannot get column name or specific value in the JSON file. 

However you could use conditional formatting with your rules.

You could also post your ideas about global settings here, maybe it will be a feature of Power BI in the future.

 

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

Thanks @v-eachen-msft but in this case the conditional formating does work, because a need to have a lot of Data Color for a lot of Visuals like Chords, Stacked Bar...

I will submit the idea.

Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.