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
ridercos
Regular Visitor

Row percent based on row total in a matrix

Hi 

 

I need some help..

 

I have a table

 

Date(Bins)    Type A        Type B        Type C       RowTotal (I created this measure adding the row)

 

Jan 2016         30              276              342               648

Feb 2016         24             269              307               600

Mar 2016        41             332              286               659

 

I need to be able to add columns Type A % of RowTotal

Type B % of Row Total

Type C % of Row Total 

 

and display that in 3 columns for each of the months or rows like shown above

 

Anyhelp? Thanks in advance

1 REPLY 1
Eric_Zhang
Employee
Employee


@ridercos wrote:

Hi 

 

I need some help..

 

I have a table

 

Date(Bins)    Type A        Type B        Type C       RowTotal (I created this measure adding the row)

 

Jan 2016         30              276              342               648

Feb 2016         24             269              307               600

Mar 2016        41             332              286               659

 

I need to be able to add columns Type A % of RowTotal

Type B % of Row Total

Type C % of Row Total 

 

and display that in 3 columns for each of the months or rows like shown above

 


If that is a table visual, I think you can create 3 measures as below. The [RowTotal] is the measure you already  created.

 

Type A % = SUM(yourTable[TypeA])/[RowTotal]

 

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.