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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.