Forum Discussion
Show average per rows
- 6 years ago
VasTg that's a slightly different issue, the data set posted by the OP did not have any blanks.
If you are facing this issue you probably need to explicitly check for blank distances using something like the following.
eg.
Avg Dist = IF( NOT( ISBLANK( 'Table'[Distance] ) ) , CALCULATE(AVERAGE('Table'[Distance]),ALLSELECTED('Table')) ) - Anonymous6 years ago
Jay,
Thank you for your response, I address the blank issue for calculating Averages from previous comment
Also to work around the total above distance I did
Above Dist = Calculate(
count(EmpDistance[EmployeeID]),
filter(EmpDistance, EmpDistance[Distance] > [Average Dist]))
Which gave me the to
Thanks,
OdedDror
Hi Anonymous , VasTg ,
Please refer to the formulas below.
Avg Dist = DIVIDE(SUMX(ALLSELECTED(Table1),Table1[Distance]),COUNTROWS(ALLSELECTED(Table1)))
Dist > Avg = IF(SELECTEDVALUE(Table1[Distance])>[Avg Dist],1,0)Result would be shown as below.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Jay,
Thank you for your response, I address the blank issue for calculating Averages from previous comment
Also to work around the total above distance I did
Above Dist = Calculate(
count(EmpDistance[EmployeeID]),
filter(EmpDistance, EmpDistance[Distance] > [Average Dist]))
Which gave me the to
Thanks,
OdedDror