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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.