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
denz
New Member

Format Data Color Automatically

I am trying to automatically format the line color in a line graph automatically. For example:

If the line is for dogs then the color is blue but if its for cats then the color of the line is orange.

 

Is it possible to do this?

Thanks

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @denz ,

Sample base table:

vluwangmsft_0-1638520352441.png

visual:

vluwangmsft_1-1638520375747.png

You could ajust color as the below:

vluwangmsft_2-1638520418313.png

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @denz ,

Sample base table:

vluwangmsft_0-1638520352441.png

visual:

vluwangmsft_1-1638520375747.png

You could ajust color as the below:

vluwangmsft_2-1638520418313.png

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

ebeery
Solution Sage
Solution Sage

Hi @denz, could you provide some screenshots and/or sample data to further clarify what exactly you mean here?

Do you have multiple lines/series' in your line graph or just one?  Has the data column containing (cats, dogs, etc.) been added to the "Legend" field well?

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.