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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Can
GYM = AVERAGE('JMH'[GYM])
Solved! Go to Solution.
Hi @Anonymous
Measures
avg1 = SUM('Table (3)'[cl2])/CALCULATE(COUNT('Table (3)'[cl1]),ALLEXCEPT('Table (3)','Table (3)'[cl1]))
avg2 = SUM('Table (4)'[cl2])/CALCULATE(COUNT('Table (3)'[cl1]),ALLEXCEPT('Table (3)','Table (3)'[cl1]))
Measure 5 = IF([avg1]>=0,[avg1],IF([avg2]>=0,[avg2],BLANK()))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Measures
avg1 = SUM('Table (3)'[cl2])/CALCULATE(COUNT('Table (3)'[cl1]),ALLEXCEPT('Table (3)','Table (3)'[cl1]))
avg2 = SUM('Table (4)'[cl2])/CALCULATE(COUNT('Table (3)'[cl1]),ALLEXCEPT('Table (3)','Table (3)'[cl1]))
Measure 5 = IF([avg1]>=0,[avg1],IF([avg2]>=0,[avg2],BLANK()))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Amit,
I tried that too its not working.
Hi @Anonymous
try this rewritten sentence
GYM Results =
VAR GYM = CALCULATE(AVERAGE('JMH'[GYM]))
VAR GYMii = CALCULATE(AVERAGE( 'General'[GYM]))
RETURN
IF( GYM >= 0, GYM, GYMii)
I am getting syntax errors
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 82 | |
| 68 | |
| 50 | |
| 46 |