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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
SamuelFelix
New Member

Line and stacked column chart column color format by field value

Hello there, I am trying to format the color of the columns on a line and stacked column chart.

 

I have the value as a column and the target as a line.

Both fields are on the same table, and they show in the chart with no issues.

Curerntly I have the columns color formated using the "Rules" Format Style, but my target changes by month and I don't want to be changing the values on rules every month.

When trying to use "Field value" it does not allow me to select the target field.

 

As I said, both fields are loaded from the same table, are both set as whole numbers and display with no issues on the chart.

Can anyone help me with that?

 

SamuelFelix_0-1734352177539.png

SamuelFelix_1-1734352200398.png

 

1 ACCEPTED SOLUTION
uzuntasgokberk
Solution Sage
Solution Sage

Hello @SamuelFelix ,

Firstly, you need to change summarization for PMP Target. Because it seems it is reading like a text.

 

uzuntasgokberk_1-1734356829970.png


İf you can't change summarization and data type. You need first change data type in your power query.

Second write a measure like that.

 

uzuntasgokberk_3-1734356879029.png
Select visual and click fx.

uzuntasgokberk_4-1734356908604.png
Apply your measure.

uzuntasgokberk_5-1734356927822.png

 

Best Regards,
Gökberk Uzuntaş

LinkedIn: https://www.linkedin.com/in/g%C3%B6kberk-uzunta%C5%9F-b43906198/

Medium: https://medium.com/@uzuntasgokberk

 

İf this post helps, then please consider Accept it as solution and kudos to help the other members find it more quickly.

 

 

View solution in original post

1 REPLY 1
uzuntasgokberk
Solution Sage
Solution Sage

Hello @SamuelFelix ,

Firstly, you need to change summarization for PMP Target. Because it seems it is reading like a text.

 

uzuntasgokberk_1-1734356829970.png


İf you can't change summarization and data type. You need first change data type in your power query.

Second write a measure like that.

 

uzuntasgokberk_3-1734356879029.png
Select visual and click fx.

uzuntasgokberk_4-1734356908604.png
Apply your measure.

uzuntasgokberk_5-1734356927822.png

 

Best Regards,
Gökberk Uzuntaş

LinkedIn: https://www.linkedin.com/in/g%C3%B6kberk-uzunta%C5%9F-b43906198/

Medium: https://medium.com/@uzuntasgokberk

 

İf this post helps, then please consider Accept it as solution and kudos to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.