Forum Discussion
Shade one column in columns Chart with lines
Hi all,
I have a column chart in PowerBi that is conditioned to be green amber or red based on the values on Y axis. One of the columns red and is a special case so I wanted to distinguish it with some other formatting. Maybe run lines through it like the below chart.
Is this possible to do?
Thank you!!
3 Replies
- amitchandak
Super User
dineshj ,I doubt that kind of shading. The best you have a gradient in conditional formatting across columns
- dineshj
Helper I
Thank you for your response amitchandak I already have that conditional formatting in my column chart. I just wanted to make one column stand out because it's an outlier.
- amitchandak
Super User
dineshj , Have you tried measure-based conditional formatting using the field value option
example
Color Date = if(FIRSTNONBLANK('Date'[Date],TODAY()) < date(2022,04,10) ,
Switch(true(),
[SLA] = 1 , "Green" ,
[SLA] >= .75 , "Amber" ,
"Red "
) ,
Switch(true(),
[SLA] = 1 , "Green" ,
[SLA] >= .5 , "Amber" ,
"Red "
)
)Color Date =
var _min =minx(allselected(Date,Date[Year])
return
Switch( true(),
FIRSTNONBLANK('Date'[Year],year(TODAY()))-_min =0 ,"lightgreen",
FIRSTNONBLANK('Date'[Year],year(TODAY()))-_min =0 ,"blue",
"red")How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539