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
Hello,
I need to calculate the avg of avg.
I need to group TAT days by EMAILID and calculate the average for distinct email ids based on selected year from the filter.
Then I further need to calculate the average of the averages calculated.
I have used:
Solved! Go to Solution.
Hi @Kritika_,
I'd like to suggest you use SUMMARIZE function to fix the detail level records and correspond TAT days calculation result. Then you can do aggregate on them with less category fields to apply the first level aggregation.
After these steps, you can use iterator function to apply the second level aggregation:
formula =
VAR summary =
GROUPBY (
SUMMARIZE (
ALLSELECTED ( Sheet1 ),
Sheet1[EMAILID],
[Create Date],
[Close Date],
"TAT", [TAT days]
),
[EMAILID],
"Avg TAT", AVERAGEX ( CURRENTGROUP (), [TAT] )
)
RETURN
AVERAGEX ( summary, [Avg TAT] )
Regards,
Xiaoxin Sheng
Hi @Kritika_,
I'd like to suggest you use SUMMARIZE function to fix the detail level records and correspond TAT days calculation result. Then you can do aggregate on them with less category fields to apply the first level aggregation.
After these steps, you can use iterator function to apply the second level aggregation:
formula =
VAR summary =
GROUPBY (
SUMMARIZE (
ALLSELECTED ( Sheet1 ),
Sheet1[EMAILID],
[Create Date],
[Close Date],
"TAT", [TAT days]
),
[EMAILID],
"Avg TAT", AVERAGEX ( CURRENTGROUP (), [TAT] )
)
RETURN
AVERAGEX ( summary, [Avg TAT] )
Regards,
Xiaoxin Sheng
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 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |