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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi ,
I have a dataset like below:
I've calculate average 'Duration' group by 'Application',
DAX: avg_duration = CALCULATE(AVERAGEX('AP tbltimecard_engineering_system',
my next step is get sum of each application's average value
now I write hard code '1.23' into a measure ,
and I've tried every solution that I know on DAX,but still can't do what I want.Solved! Go to Solution.
Hi @Anonymous ,
I suggest you to try this code to create [avg_duration] measure.
avg_duration =
VAR _SUMMAZIRE =
SUMMARIZE (
'AP tbltimecard_engineering_system',
'AP tbltimecard_engineering_system'[ApplicationName],
"avg_duration",
CALCULATE (
AVERAGE ( 'AP tbltimecard_engineering_system'[Duration] ),
ALLEXCEPT (
'AP tbltimecard_engineering_system',
'AP tbltimecard_engineering_system'[ApplicationName]
)
)
)
RETURN
SUMX(_SUMMAZIRE,[avg_duration])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Can you try the below measure and see if it works?
Regards,
Kishore
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Try a measure like
calculate( AverageX(Values('AP tbltimecard_engineering_system'[Application Name]), [avg_duration ]), allselected())
Hi @amitchandak ,
I tried your measure,but the output seems not I want,
result:
did I write something wrong?
and thank you for your reply!
Hi @Anonymous ,
I suggest you to try this code to create [avg_duration] measure.
avg_duration =
VAR _SUMMAZIRE =
SUMMARIZE (
'AP tbltimecard_engineering_system',
'AP tbltimecard_engineering_system'[ApplicationName],
"avg_duration",
CALCULATE (
AVERAGE ( 'AP tbltimecard_engineering_system'[Duration] ),
ALLEXCEPT (
'AP tbltimecard_engineering_system',
'AP tbltimecard_engineering_system'[ApplicationName]
)
)
)
RETURN
SUMX(_SUMMAZIRE,[avg_duration])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.