This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hello, I need a formula that allows me to obtain the average of some data. I can not get that, it only throws me as a final result the sum of the data. In this case, I need the average to appear in Total, which would be 18.
Thank you.
Solved! Go to Solution.
Hi @Syndicate_Admin ,
I suggest you to try code as below to create a measure.
Measure =
IF (
HASONEVALUE ( 'Table'[Colegiador Eycc] ),
CALCULATE ( SUM ( 'Table'[Totales] ) ),
AVERAGEX (
VALUES ( 'Table'[Colegiador Eycc] ),
CALCULATE ( SUM ( 'Table'[Totales] ) )
)
)
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, thanks for the help.
Is it possible for data to be consolidated by date? But the result in the final matrix is an average of what is obtained by each record?
I am referring to:
In the following image, a total of 68.47% appears in the first record. But I need it to be the average of the first registration, this is 121.43%, 84.45% and 152.38%. As there is no data in the previous days it is not considered for this case.
For the 5th record, there is only one data that is 81.90% and I want the result to be the same, 81.90% since there is no more data.
And so on.
It's possible?
Thank you.
Hi, thanks for the help.
Is it possible for data to be consolidated by date? But the result in the final matrix is an average of what is obtained by each record?
I am referring to:
In the following image, a total of 68.47% appears in the first record. But I need it to be the average of the first registration, this is 121.43%, 84.45% and 152.38%. As there is no data in the previous days it is not considered for this case.
For the 5th record, there is only one data that is 81.90% and I want the result to be the same, 81.90% since there is no more data.
And so on.
It's possible?
Thank you.
Hi @Syndicate_Admin ,
I suggest you to try code as below to create a measure.
Measure =
IF (
HASONEVALUE ( 'Table'[Colegiador Eycc] ),
CALCULATE ( SUM ( 'Table'[Totales] ) ),
AVERAGEX (
VALUES ( 'Table'[Colegiador Eycc] ),
CALCULATE ( SUM ( 'Table'[Totales] ) )
)
)
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.
@Syndicate_Admin , seem like you need Avg of Sum, assuming [Totales] is a measure, create a new measure
Averagex(Values(Table[Colegiadoe Eycc]) , [Totales])
Avg of Sum : https://youtu.be/cN8AO3_vmlY?t=22980
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 31 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 31 | |
| 26 | |
| 23 |