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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
HENRIQSI
Frequent Visitor

Column + line chart

Hello,

I have a chart with Columns (Month results) + lines (month goals).

Someone knows how to put a color conditional for de columns when its up or down the goal line? Like, green for values upper than goals, and red for down?

question.PNG

1 ACCEPTED SOLUTION
HENRIQSI
Frequent Visitor

Problem solved!
Just for information, I created  2 new measures, conditioned (Productive good = IF([Productive3]>[Goal3];[Produtictive3];0) and (Productive bad = IF([Productive3]<[Goal3];[Produtictive3];0). 


Ps: Indicators MUST be in Measures with Sum function

 

Ex. [Productive3] = DIVIDE ([Production3];[Worked hours3];0)]

     [Production 3] = SUM (Plan1[Production]);

     [Worked hours3] = SUM (Plan1[Worked hours])

     [Goal3] = SUM (Plan1[Goal])

Capturar2.PNG

View solution in original post

11 REPLIES 11
HENRIQSI
Frequent Visitor

Problem solved!
Just for information, I created  2 new measures, conditioned (Productive good = IF([Productive3]>[Goal3];[Produtictive3];0) and (Productive bad = IF([Productive3]<[Goal3];[Produtictive3];0). 


Ps: Indicators MUST be in Measures with Sum function

 

Ex. [Productive3] = DIVIDE ([Production3];[Worked hours3];0)]

     [Production 3] = SUM (Plan1[Production]);

     [Worked hours3] = SUM (Plan1[Worked hours])

     [Goal3] = SUM (Plan1[Goal])

Capturar2.PNG

Anonymous
Not applicable

i have that same issue. I couldn't understand how did you solve that. Could you please share pbix if you have ? or tell again ?
Thanks.

I just created 2 new measures. The first is for the results bigger than goal, and the second is for results smaller than goal.

So, instead of plot the result measure, plot the 2 new measures and the goal, and define a color for each measures (in my case, green for good and red for bad).

 

 

Anonymous
Not applicable

Thank you so much. i got it ! 

I did it and it works but it shows like this:

 

 

How can I make the chart show only a single bar, the one with actual values?

Hello Lucas,

probably is the type of chart that you choose.

Look like you selected Line and clustered column chart, when I choose Line and Stacked Column chart.

 

Thank you! You were right!

I did it and it works but it shows like this:

 

 

How can I make the chart show only a single bar, the one with actual values?

pxg08680
Resolver III
Resolver III

@HENRIQSI

First thing is , is your goal line fixed..?

 If yes, use the same column Productive... and put it in the colorSaturation field and go to data color section. Select the diverging option and put the center value as you goal line value.

 

Hope this solves your problem.

Unfortunately my goal line isn't fixed...

And in the Column + line chart option there is no ColorSaturation option =/

HENRIQSI
Frequent Visitor

Hello,

 

Well I have a Collum (month values) + Line (month goals) chart.

Someone knows how to put a conditional to change the collor of the columns of my chart, if it up (green) or down (red) the line?

Thx.

 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.