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

Calculate average based on two columns

Hi guys,

 

I've recently discovered Power BI and I love the possibilities. I've come a long way with Youtube tutorials and this forum (it's truly amazing :)) However, I've run into an error to which I have not been able to find a solution. And I've already burned a lot of hours to find a solution..

 

The problem is as follows: the column '%decl. tov gewerkt' is based on the column 'Declarabel' devided by 'Uren gewerkt'. The total value in the column '%decl. tov gewerkt' is the average of the numbers in the column. However, it should be the average of the total value of 'Declarabel' divided by the total value of 'Uren gewerkt'.
Or, to use some numbers: The table below calculates the total value of '%Decl. tov gewerkt' as an average of the numbers above, resulting in a 65.86%. Yet is should be 50 (total value of 'Declarabel') by 72,75 (total value of 'Uren gewerkt') = 68,73%. 

Thasos_3-1671721102643.png

Can anyone maybe show me where I'm going wrong?

 

I've included a sample of the data I am working with here: Test file 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You can create a measure like 

% average = DIVIDE( SUM( Blad1[Declarabel]), SUM( Blad1[uren gewerkt] ) )

View solution in original post

2 REPLIES 2
Thasos
Regular Visitor

You are my absolute hero. I was already searching for something with measures, but I couldn't find the right formula. Thanks!!

johnt75
Super User
Super User

You can create a measure like 

% average = DIVIDE( SUM( Blad1[Declarabel]), SUM( Blad1[uren gewerkt] ) )

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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