Forum Discussion
Syndicate_Admin
3 years agoAdministrator
Average
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 T...
- Anonymous3 years ago
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 ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
3 years agoNot applicable
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.