Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I try to create a matrix where the row total is in Average but the single values should aggregate as sum. but i can only change all aggregation to average or the row total is als as sum.
the matrix should look something like in the following picture. One column with row average and the values with sum aggregation
does anyone can help me with that or can give me another solution.
Thanks!
Solved! Go to Solution.
Hi @Jango ,
Not sure if what you need is to have the total in rows or in columns has averages but you should do something similar to:
Matrix Values =
IF (
ISINSCOPE ( Table[ColumnHeaders] ),
SUM ( Table[Values] ),
AVERAGEX (
DISTINCT ( Table[ColumnHeader] ),
CALCULATE ( SUM ( Table[Values] ) )
)
)
This will give for each column the sum of the values for the total column it will give you the average of the sums.
This needs to be adjusted to your model but here is an example:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Jango ,
Not sure if what you need is to have the total in rows or in columns has averages but you should do something similar to:
Matrix Values =
IF (
ISINSCOPE ( Table[ColumnHeaders] ),
SUM ( Table[Values] ),
AVERAGEX (
DISTINCT ( Table[ColumnHeader] ),
CALCULATE ( SUM ( Table[Values] ) )
)
)
This will give for each column the sum of the values for the total column it will give you the average of the sums.
This needs to be adjusted to your model but here is an example:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Portuguêsexactly what i needed! Thank you!
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 |
|---|---|
| 97 | |
| 71 | |
| 50 | |
| 46 | |
| 44 |