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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
FMeuldijk
Regular Visitor

Calculate Average from two columns in a Metrix

Hi, I want to calculate an average from 2 columns:

 

Column 1: Number of Documents

Column 2: Number of Days

 

I manually created an additional column in my data which calculates the correct average for each line item.

But when I want to display this column in the Matrix (average) the values seems to be incorrect.

See attached example:

ScreenShot882.jpg

 

Any idea how to solve this?

1 ACCEPTED SOLUTION
judspud
Solution Supplier
Solution Supplier

Hi @FMeuldijk 

 

Try creating a measure that is the sum of documents created divided by the sum of days.

 

When added to a matrix this will calculate it at a row level context but also correctly at the totals

 

Hope this helps

 

Thanks,

George

View solution in original post

1 REPLY 1
judspud
Solution Supplier
Solution Supplier

Hi @FMeuldijk 

 

Try creating a measure that is the sum of documents created divided by the sum of days.

 

When added to a matrix this will calculate it at a row level context but also correctly at the totals

 

Hope this helps

 

Thanks,

George

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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