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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Michael92
Frequent Visitor

Column color according to the target

Hello all,

can you please help me with the following problem. It is possible to color in the column chart according to the target while every month is a different target?
Red if the value is lower than the target, Green if the value is higher.
I want to use Line and stacked column chart. While Line represents the target.

 

Michael92_0-1677580971202.png

 

 

Thank you

Michael

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@Michael92 ,

I believe this is your expectation,

1. Create a measure by making necessary changes based on your tablename.

 

CF = 
IF(SUM('Table (2)'[Value])<SUM('Table (2)'[Target]),1,0)

 

Arul_0-1677586566451.png

2. Go to conditional formatting pane, click and open fx in the column option.

Arul_1-1677586648714.png

3. And select the Format style as rule and field as measure name and the choose the colors for the given condition.

Arul_2-1677586754475.png

Thanks,

Arul





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

Proud to be a Super User!


LinkedIn


View solution in original post

2 REPLIES 2
Arul
Super User
Super User

@Michael92 ,

I believe this is your expectation,

1. Create a measure by making necessary changes based on your tablename.

 

CF = 
IF(SUM('Table (2)'[Value])<SUM('Table (2)'[Target]),1,0)

 

Arul_0-1677586566451.png

2. Go to conditional formatting pane, click and open fx in the column option.

Arul_1-1677586648714.png

3. And select the Format style as rule and field as measure name and the choose the colors for the given condition.

Arul_2-1677586754475.png

Thanks,

Arul





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

Proud to be a Super User!


LinkedIn


Perfect !!! It works. Thank you very much.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.