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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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.

v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.