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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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