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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
RamyaRapolu
Frequent Visitor

Dynamic target line on stacked bar chart

Hi 

I want to add target line to the stacked bar chart like below. The actual value is directly coming from a column but the target here is a measure so I am unable to add it to constant line. Same thing is possible with stacked column chart but how to achieve this with stacked bar chart. 

RamyaRapolu_1-1615896482636.png

 

 

4 REPLIES 4
arindam_sarma
Regular Visitor

@RamyaRapolu , have you received any solution to your problem? I also need the exact solution.

Anonymous
Not applicable

Hi @RamyaRapolu,

AFAIK, some of the analysis lines support measure expressions, but they only allow the expressions that you used in visual value fields.

In my opinion, I'd like to suggest you switch to 'line and stacked bar' chart and use measure expression on line fields to show the target line.

Regards,
Xiaoxin Sheng

Thanks for your response. But my requirement is that way. I am still working on it.

Anonymous
Not applicable

HI @RamyaRapolu,

Did you mind using script-based visuals? (R/python) They allow you to use script and library to manly plot visualization with addition or customize visualizations.

How to Make a Stacked Bar Chart in R Using ggplot2 (rstudio-pubs-static.s3.amazonaws.com)
Regards,

Xiaoxin Sheng

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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