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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Tuan
Helper III
Helper III

% of Row

Been trying to figure this out. I have Row data that has Sales and Expenses in the same column but on the row level. I'm trying to figure out how to get a % of Sales.

 

I want the Sales value to be repeated down the rows so I can do a % of Sales. When I try doing All or Allexcept it doesn't account for my year slicer.

 

 

 

Gross Sales (GL) = SUMX(FILTER('Gross To Net','Gross To Net'[Transaction Type]="Gross Sales"),'Gross To Net'[GL_POSTING_BASE_BALANCE])

 

 

 

 

1 ACCEPTED SOLUTION

@Tuan add a measure 

 

Trade Expense % = 
DIVIDE (
 CALCULATE ( SUM ( Table[Amount] ), Table[Transaction Type] = "Trade Expense" ),
 CALCULATE ( SUM ( Table[Amount] ), Table[Transaction Type] = "Gross Sales )
)

 

and change this measure format to %, you can make the changes to the above expression to meet your business needs.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Tuan , Not sure this is what you need. But in Matrix, you can right click on value under visualization tab and choose % of row total

 

RowTotalPercent.png

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

Not quite. I want % of another row value.

 

Maybe this picture will help. I want the Trade Expense to be a % of Gross Sales.

 

image.png

@Tuan add a measure 

 

Trade Expense % = 
DIVIDE (
 CALCULATE ( SUM ( Table[Amount] ), Table[Transaction Type] = "Trade Expense" ),
 CALCULATE ( SUM ( Table[Amount] ), Table[Transaction Type] = "Gross Sales )
)

 

and change this measure format to %, you can make the changes to the above expression to meet your business needs.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

mahoneypat
Microsoft Employee
Microsoft Employee

A sample of your data (or mock data), along with the desired output would help you get a solution to your scenario.

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.