cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

% 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

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: % of Row

@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!

 






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
Highlighted
Community Champion
Community Champion

Re: % of Row

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

 

Regards,

Pat

Highlighted
Super User IV
Super User IV

Re: % of Row

@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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Helper II
Helper II

Re: % of Row

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

Highlighted
Super User IV
Super User IV

Re: % of Row

@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!

 






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

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors