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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

how to add the percentage line(trend line) to bar chart?

Hi Gurus,

 

Need your help. Could you please let me know how to add a percentage line to my bar chart? I am newbie to Power BI. thanks for your support. Attaching the screen shot of the image which I would like to replicate.

Thanks for your time and help.

 

image.jpg

 

Regards,

Ratish

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

if you use clustered column chart, you could add a trend line as below, then add a shape "arrow" on the line.

1.png

 

Based on test, stacked column chart doesn't support add a trend line like this.

 

If you have to use stacked bar chart, here is a workaround.

use Line and Stacked column chart instead, assume you have such dataset, 

create a measure, add this measure to the "Line Values"

Measure = CALCULATE(SUM(Sheet1[value]),ALLEXCEPT(Sheet1,Sheet1[month]))

2.png

 

Best Regards
Maggie



Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi Maggie,

 

Thanks for your reply and help, it surely helped, I also want the percentage to be displayed. Like every month a percent value on top of the line should be seen.

For this I might have to create a new measure is it?

 

Thanks & Regards,
Ratish

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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