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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
shunwg
New Member

Percentage of sum of values in row

Hi,

 

I have a 2D matrix, where the leftmost vertical column shows a product(towards y-direction), and each column (towards x-direction) represents a department store. A "raw" value in each cell within the table is number of a certain kind of product in each store.

 

I want to divide each value in the matrix, and divide it by the sum of all values in each row, instead of dividing each value by the sum of all values in each column as is done in figure below.

 

In this figure, I use 'Stacked Column Chart' as visualization, and I display values of '% of grand total'

 

shunwg_1-1603272268884.png

 

 

 

 

3 REPLIES 3
amitchandak
Super User
Super User

@shunwg , Not clear. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

refer this : https://community.powerbi.com/t5/Desktop/Showing-percentage-values-in-Stacked-Column-Chart/td-p/1697...

https://community.powerbi.com/t5/Desktop/Percentage-of-column-total-in-a-stacked-column-chart/td-p/4...

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

Hi again,

 

Thanks for your response. Was hoping to explain it without showing the raw data.

 

Showing again the same data, marking the row with "82,10" and shop K001, I want this cell to show the proportion K001 represents for all values in row "82,10", 

 

So I want the value in this cell to be % of quantity = K001(82,10) / (sum(K001(82,10),K002(82,10),K101-1(82,10),K101-2(82,10 etc) *100%. The reality is that I have more than 50 columns, so I want the same size of matrix but with percentages representing proportion of all quantities in row 82,10.

 

I hope this is more clarifying. 

 

 

shunwg_0-1603281751952.png

 

Hi, @shunwg 

K001(82,10), K002(82,10), K101-1(82,10), K101-2(82,10) etc. are   table original columns , or  measures you created ?

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors