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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
JMS1985
Frequent Visitor

How to divide lines by Total

Hello, 

Im having some trouble to get a value by the total of each line.

I have 4 kind of products with a production in euros and the number of days of each product. I divide the production with the days to know my value per day.

However I would like to divide the production of each product by the total days of each line, so the sum of each value per day is the same as the total value per day.

 

e.g. for the first line and product I want to divide: 12.4€/368 days

 

Thanks in advance for the help

 

JMS1985_0-1613726376080.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JMS1985 , One option is to drag this measure and right click on it in the visual pane. You should get option to show as % of row/column total

Percent of total.png

 

 

Another is to have a measure, Assume you have col1 on row and col2 on the column

 

Divide([measure], calculate([measure], removefilters(Table[Col2]))

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@JMS1985 , One option is to drag this measure and right click on it in the visual pane. You should get option to show as % of row/column total

Percent of total.png

 

 

Another is to have a measure, Assume you have col1 on row and col2 on the column

 

Divide([measure], calculate([measure], removefilters(Table[Col2]))

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

Hello @amitchandak I have used your proposed formula and it has worked. Thank you for your fast reply and have a nice weekend!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.