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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
jewels0122
New Member

Calculating Averages

Hi.  I am trying to calculate an average based on a different field name.  I have a field named "Name" and in it, there are values of "sheet length-3 sheets", "sheet length-6 sheets", etc.  In another table, there is a "value" field that would hold the value of the measurements of 3 sheets, 6 sheets, 10 sheets.  I am trying to write a formula that will calculate the average of a single sheet based on those values (sheet length-3 sheets so it would need to divide by 3, etc.).  Any advice?

3 REPLIES 3
jewels0122
New Member

Here is a screenshot of the data...I am trying to take the average value, divide it by the sheets based on the name, so for example, the first row, it would take the 36.28 and divide by 6 to give me an average of 6.05

jewels0122_0-1680712589396.png 

Does this help?

Hi @jewels0122 

please try

=
VAR SelectedTable =
ALLSELECTED ( 'Table' )
RETURN
DIVIDE (
AVERAGE ( 'Table'[Value] ),
CALCULATE (
AVERAGE ( 'Table'[LengthMin] ),
SelectedTable,
VALUES ( 'Table'[Name] )
)
)

tamerj1
Super User
Super User

Hi @jewels0122 

please provide sample data slong with the expected results 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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