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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Stack bar chart visualization

I have Line stacked bar chart in powerbi desktop. 

Dilantha_0-1606802415020.png

I want to add mean line only on stack two area, Is that possible to do like that ? I added average line for both stacks, I still couldnt able to figure out how to fix that.

 

Thank you

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try to create a measure like below and then put it into line value field.

Measure = 
AVERAGEX ( FILTER ( ALL ( 'Table' ), 'Table'[type] = 2 ), [value] )

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

I will try that, 

One other thing, can we do below steps in line and stacked column chart ?

 

right click on one column --> data point as table

 

because I cant do that in my visualiation, It an process when only remove the line.

 

Does that option not avalable in line and stacked column chart ? or is their any necessary steps to continue that.

 

Thank you 

Icey
Community Support
Community Support

Hi @Anonymous ,

 

Based on my test, line and stacked column chart doesn't support Data point table in Power BI currently.

You can choose to post your idea on Power BI Ideas platform.

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

Anonymous
Not applicable

Thank you for the help. 

amitchandak
Super User
Super User

@Anonymous , Not very clear. Can you try Stacked Area. https://www.tutorialgateway.org/stacked-area-chart-in-power-bi/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I have stacked bar chart like this

Dilantha_1-1606868781892.png

 

I added line for total graph amount , but I only need mean number for yellow coloured area. Not from total values. How can I do that ?

 

Hi,

Share some data and show the expected result in a simple table format.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thats the expected visualization,

Dilantha_0-1606883659592.png

If we consider thats the data table , i need to display line for only type 2 data. Is that possible to do without measure or with measure ?

can you provide measure example ?

 

Thank you

Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try to create a measure like below and then put it into line value field.

Measure = 
AVERAGEX ( FILTER ( ALL ( 'Table' ), 'Table'[type] = 2 ), [value] )

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

Anonymous
Not applicable

I wanted dynamic average line, but this is worked. I changed AVERAGEX --> AVERAGE . 

It works fine.

 

Thank you

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors