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 am struggling with this formula. A user can have several evaluations during a year. So I need to calculate the monthly average, and then average those monthly averages.
I am trying to summarize another summarize, but I can't get to the "MonthlyAverage" that contains the average for each month.
Any tips on how to fix it? They will be greatly appreciated.
Thanks.
Armando
SUMMARIZE(
SUMMARIZE (
'PositionEvaluationPeriod',
Calendar[Date],
Users[idUser],
"MonthlyAverage", AVERAGE ( Evaluation[Grade] )
),
Users[idUser],
"GeneralAverage", AVERAGE(MonthlyAverage)
)
Solved! Go to Solution.
Try this.
Test =
SUMMARIZE(
SUMMARIZE(
'PositionEvaluationPeriod',
Calendar[Date],
Users[idUser],
"MonthlyAverage", AVERAGE( Evaluation[Grade] )
),
Users[idUser],
"GeneralAverage", AVERAGE( [MonthlyAverage] )
)
The syntax is correct, but do not think it will work. You will probably need this:
Test =
VAR varFirstSummary =
SUMMARIZE(
'PositionEvaluationPeriod',
Calendar[Date],
Users[idUser],
"MonthlyAverage", AVERAGE( Evaluation[Grade] )
)
RETURN
SUMMARIZE(
varFirstSummary,
Users[idUser],
"GeneralAverage",
AVERAGEX(
varFirstSummary,
[MonthlyAverage]
)
)
And you may still need to wrap AverageX in a CALCULATE, and you might still get wrong results. SUMMARIZE should generally only be used to create the summary fields. Use ADDCOLUMNS() to add the values.
Test =
VAR varFirstSummary =
ADDCOLUMNS(
SUMMARIZE(
'PositionEvaluationPeriod',
Calendar[Date],
Users[idUser]
),
"MonthlyAverage",
CALCULATE(
AVERAGE( Evaluation[Grade] )
)
)
RETURN
ADDCOLUMNS(
SUMMARIZE(
varFirstSummary,
Users[idUser]
),
"GeneralAverage",
CALCULATE(
AVERAGEX(
varFirstSummary,
[MonthlyAverage]
)
)
)
See Best Practices Using SUMMARIZE and ADDCOLUMNS - SQLBI for more info on this. SUMMARIZE() is a bit buggy in some cases is the reason for this.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingGlad to help @alfranco17
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThank you!
Try this.
Test =
SUMMARIZE(
SUMMARIZE(
'PositionEvaluationPeriod',
Calendar[Date],
Users[idUser],
"MonthlyAverage", AVERAGE( Evaluation[Grade] )
),
Users[idUser],
"GeneralAverage", AVERAGE( [MonthlyAverage] )
)
The syntax is correct, but do not think it will work. You will probably need this:
Test =
VAR varFirstSummary =
SUMMARIZE(
'PositionEvaluationPeriod',
Calendar[Date],
Users[idUser],
"MonthlyAverage", AVERAGE( Evaluation[Grade] )
)
RETURN
SUMMARIZE(
varFirstSummary,
Users[idUser],
"GeneralAverage",
AVERAGEX(
varFirstSummary,
[MonthlyAverage]
)
)
And you may still need to wrap AverageX in a CALCULATE, and you might still get wrong results. SUMMARIZE should generally only be used to create the summary fields. Use ADDCOLUMNS() to add the values.
Test =
VAR varFirstSummary =
ADDCOLUMNS(
SUMMARIZE(
'PositionEvaluationPeriod',
Calendar[Date],
Users[idUser]
),
"MonthlyAverage",
CALCULATE(
AVERAGE( Evaluation[Grade] )
)
)
RETURN
ADDCOLUMNS(
SUMMARIZE(
varFirstSummary,
Users[idUser]
),
"GeneralAverage",
CALCULATE(
AVERAGEX(
varFirstSummary,
[MonthlyAverage]
)
)
)
See Best Practices Using SUMMARIZE and ADDCOLUMNS - SQLBI for more info on this. SUMMARIZE() is a bit buggy in some cases is the reason for this.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCheck 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 |
|---|---|
| 20 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 29 | |
| 21 | |
| 12 | |
| 12 |