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
topazz11
Helper III
Helper III

Measure/calculation based on overall average

I want to calculate and create a column using the measure.

Based on the filter, it needs to be calculated as below. (overall average value x amount in each row)

I cannot find a solution.  Do you have any idea how to solve this? Please suggest.

 

Screenshot 2022-01-12 154724.jpg

 

TypeValueAmtDesired Calculation/Output
CCC0.230.78=8.38*0.78    =6.53
AAA14.3032.46=8.38*32.46  =271.82
DDF0.621.13=8.38*1.13    =9.44
CHT11.1043.30=8.38*43.30  =362.63
GJU4.3821.06=8.38*21.06  =176.38
CHA19.62115.50=8.38*115.5  =967.33
avg8.38   
1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @topazz11 

 

Try this:

Measure =
Var _A = CALCULATE(AVERAGE('Table'[Value]),REMOVEFILTERS('Table'[Type]))
return
max('Table'[Amt])*_A
 
the output:
VahidDM_0-1642025972916.png

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

1 REPLY 1
VahidDM
Super User
Super User

Hi @topazz11 

 

Try this:

Measure =
Var _A = CALCULATE(AVERAGE('Table'[Value]),REMOVEFILTERS('Table'[Type]))
return
max('Table'[Amt])*_A
 
the output:
VahidDM_0-1642025972916.png

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

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.