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
Dilantha
Post Patron
Post Patron

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 @Dilantha ,

 

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
Dilantha
Post Patron
Post Patron

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 @Dilantha ,

 

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.

Thank you for the help. 

amitchandak
Super User
Super User

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/

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 @Dilantha ,

 

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.

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

It works fine.

 

Thank you

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.