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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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