Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in BI by (11.1k points)
I am having a cluster column charts which has target and value,If the value is above the target then chart must be red,otherwise green.How can I do this in Power Bi?

1 Answer

0 votes
by (22.5k points)
edited by

On visualization select for Line and clustered column chart 

Visualisation pane example

and use the following measure

TargetColour = 

VAR Actual = SUM(Table1[Actual])
VAR Target = SUM(Table1[Target])

RETURN

IF(
    Actual >= Target,
    1,
    0
)

And under conditional formating use different colors

Enroll now in Power BI Certification Course to learn more.

Also, check out our YouTube video to know the data visualization basics and best practices with Power BI

Related questions

0 votes
1 answer
asked Nov 24, 2020 in BI by Chris (11.1k points)
0 votes
1 answer
asked Feb 28, 2021 in BI by Chris (11.1k points)
0 votes
1 answer
asked Dec 24, 2020 in BI by Chris (11.1k points)
0 votes
1 answer

Browse Categories

...