cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Daniel_Fdrvc
Frequent Visitor

Stacked bar graph with values and percentage (excel example)

Hello all,

 

in MS Excel i can make stacked bar graph with labels which beside main value contains additional values from cells and separate them with (new line). Example below:

 

image001.png

 

Is there any way to make same things in Power BI? I need beside main values to show additional values - calculated percentages

image002.png

 

I'll be thankful for any help ❤️

1 ACCEPTED SOLUTION
Ailsa-msft
Community Support
Community Support

Hi @Daniel_Fdrvc 

Please correct me if I wrongly understood your question.

I create two columns to sum the value and percentage of the value ..

sum = CALCULATE(SUM('Table'[Column1]),ALLEXCEPT('Table','Table'[Date]))

percentage = 'Table'[Column1]/'Table'[sum]

And then add a Line and stacked column chart .Set percentage in Column values . The result is as shown :

Ailsa-msft_0-1620351817700.png
Ailsa-msft_1-1620351817702.png

Notice : Only one field can be added to Column values . If you want display all of them, you can add another same visual to display another value .

I have attached my pbix file, you can refer to it .

 

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Ailsa-msft
Community Support
Community Support

Hi @Daniel_Fdrvc 

Please correct me if I wrongly understood your question.

I create two columns to sum the value and percentage of the value ..

sum = CALCULATE(SUM('Table'[Column1]),ALLEXCEPT('Table','Table'[Date]))

percentage = 'Table'[Column1]/'Table'[sum]

And then add a Line and stacked column chart .Set percentage in Column values . The result is as shown :

Ailsa-msft_0-1620351817700.png
Ailsa-msft_1-1620351817702.png

Notice : Only one field can be added to Column values . If you want display all of them, you can add another same visual to display another value .

I have attached my pbix file, you can refer to it .

 

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Daniel_Fdrvc
Frequent Visitor

Up 😉

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors