Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I want some help with the below example.
| 10 | ||||
| 22 | ||||
| 27 | ||||
| 45 | ||||
| 155 | include | Avg:- 29 | ||
| 15 | exclude | Avg:- 21 | range | 5 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
Hi @sameergupta60 ,
I can find that 29 = AVERAGE(A5:A17). But how is "21" calculated?
Best regards
Icey
If this post helps, then consider Accepting it as the solution to help other members find it faster.
@sameergupta60 , You can create a measure or column like
averageX(filter(table, table[value]>= 5 && table[value]<= 45),table[Value])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 119 | |
| 100 | |
| 72 | |
| 69 | |
| 65 |