Forum Discussion
Calculated Column_Average Earned
- Anonymous2 years ago
Hi AllanBerces ,
Please try:
AVE_EARNED= VAR TaskTotalEarned = CALCULATE ( SUM ( 'S-CURVE'[DAILY_EARNED] ), ALLEXCEPT ( 'S-CURVE', 'S-CURVE'[Task No.] ) ) VAR TaskCountNonZero = CALCULATE ( COUNTROWS ( 'S-CURVE' ), 'S-CURVE'[DAILY_EARNED] > 0, ALLEXCEPT ( 'S-CURVE', 'S-CURVE'[Task No.] ) ) RETURN IF ( TaskTotalEarned > 0, TaskTotalEarned / TaskCountNonZero, BLANK () )After creating it, drag it to the report page for display. The page effect is as follows:
pbix file is attached.
If you have any further questions please feel free to contact me.
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi AllanBerces ,
Please try:
AVE_EARNED=
VAR TaskTotalEarned =
CALCULATE (
SUM ( 'S-CURVE'[DAILY_EARNED] ),
ALLEXCEPT ( 'S-CURVE', 'S-CURVE'[Task No.] )
)
VAR TaskCountNonZero =
CALCULATE (
COUNTROWS ( 'S-CURVE' ),
'S-CURVE'[DAILY_EARNED] > 0,
ALLEXCEPT ( 'S-CURVE', 'S-CURVE'[Task No.] )
)
RETURN
IF ( TaskTotalEarned > 0, TaskTotalEarned / TaskCountNonZero, BLANK () )
After creating it, drag it to the report page for display. The page effect is as follows:
pbix file is attached.
If you have any further questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!