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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Oros
Post Prodigy
Post Prodigy

Stack chart

Hello.

 

I have a data of salespersons who have individual targets and sales for each month.  How do you show in a stack chart (or any chart/visual) who achivee 100% or more (would show green on top), and those who achieved less than 100% of their individual targets (would show in red in the bottom).  Thanks.  

 

Oros_0-1672954224735.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Oros ,

 

Due to design, Power BI Desktop does not currently support implementing this feature, you can post your idea to Ideas so that Microsoft can make improvements to the product.

 

I advise you to use subtraction,when the value is positive, it means that the baseline is exceeded, and when the value is nagative, it means that it is below the baseline.

 

(1) This is my test data.  

vtangjiemsft_0-1672994657990.png

(2)We can create a measure.

Measure = IF(SELECTEDVALUE('Table'[individual targets])>=1,"green","red")

(3) We can create a calculated column.

_individual targets = 'Table'[individual targets]-1

(4)Set the color for the column as shown in the following image.

Picture1.pngPicture2.png

(3) Then the result is as follows.

vtangjiemsft_1-1672994969068.png

Please note that if you place a field on legend, the color setting has no effect, which is also by design for desktop.

 

Or you can use EXCEL to add a baseline and please refer to the following link which may be helpful to you.

How to add horizontal benchmark/target/base line in an Excel chart? (extendoffice.com)

 

I attach my sample below for your reference.

 

Best Regards,

Neeko Tang

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Oros ,

 

Due to design, Power BI Desktop does not currently support implementing this feature, you can post your idea to Ideas so that Microsoft can make improvements to the product.

 

I advise you to use subtraction,when the value is positive, it means that the baseline is exceeded, and when the value is nagative, it means that it is below the baseline.

 

(1) This is my test data.  

vtangjiemsft_0-1672994657990.png

(2)We can create a measure.

Measure = IF(SELECTEDVALUE('Table'[individual targets])>=1,"green","red")

(3) We can create a calculated column.

_individual targets = 'Table'[individual targets]-1

(4)Set the color for the column as shown in the following image.

Picture1.pngPicture2.png

(3) Then the result is as follows.

vtangjiemsft_1-1672994969068.png

Please note that if you place a field on legend, the color setting has no effect, which is also by design for desktop.

 

Or you can use EXCEL to add a baseline and please refer to the following link which may be helpful to you.

How to add horizontal benchmark/target/base line in an Excel chart? (extendoffice.com)

 

I attach my sample below for your reference.

 

Best Regards,

Neeko Tang

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

Thank you @Anonymous !!!

grandtotal
Resolver III
Resolver III

What is on the X axis? Every salesperson?

Hi @grandtotal,

 

Correct.  Each Salesperson is on the X axis.  Thanks.

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors