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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
hi
in the below example Matri table, I want the avg range between 5 to 45. please suggest the formula.
in the below example it includes all column data & generates Avg.
Another example is given below
| 1 | 13 | 13 |
| 2 | 15 | 15 |
| 3 | 21 | 21 |
| 4 | 21 | 21 |
| 5 | 28 | 28 |
| 6 | 48 | |
| 7 | 93 | |
| Avg | 34 | 19.6 |
Regards,
Sameer
Solved! Go to Solution.
Hi, @sameergupta60
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a measure as below.
Result =
IF(
ISINSCOPE('Table'[Category]),
SUM('Table'[Val]),
AVERAGE('Table'[Val])
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @sameergupta60
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a measure as below.
Result =
IF(
ISINSCOPE('Table'[Category]),
SUM('Table'[Val]),
AVERAGE('Table'[Val])
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@sameergupta60 , Try like
averageX(filter(table, table[value]>= 5 && table[value]<= 45),table[Value])
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 55 | |
| 41 | |
| 16 | |
| 14 |
| User | Count |
|---|---|
| 98 | |
| 80 | |
| 35 | |
| 29 | |
| 25 |