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
sameergupta60
Helper IV
Helper IV

Need help

Hi,

 

I want some help with the below example.

 

10    
22    
27    
45    
155includeAvg:- 29  
15excludeAvg:- 21range5 to 45
14    
10    
22    
15    
14    
21    
23    
21    
25    
23    
26    

 

in the above example, I want to define the range to calculate the avg in between 5 to 45.

whatever number range between 5 to 45 only those number average should be calculated.

 

Regards,

Sameer 

 

 

 

 

 

2 REPLIES 2
Icey
Community Support
Community Support

Hi @sameergupta60 ,

 

I can find that 29 = AVERAGE(A5:A17). But how is "21" calculated?

 

AVG.jpg

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

 

amitchandak
Super User
Super User

@sameergupta60 , You can create a measure or column like

averageX(filter(table, table[value]>= 5 && table[value]<= 45),table[Value])

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.