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
Daniel_Fdrvc
Helper I
Helper I

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
v-yetao1-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
v-yetao1-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.

Daniel_Fdrvc
Helper I
Helper I

Up 😉

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.