Forum Discussion
rogerthat
Helper I
3 years agoMissing Data Points for Average
Hi, I'm currrently calculating the average for a column in Table 1, however there's data missing and I'm trying to include it Data Exists for 6, missing for 11. Average = {5,5,8,6,8,6} -> 5 ...
- Anonymous3 years ago
Hi rogerthat ,
Due to I don't know your data model, here I create a sample to have a test.
Average = AVERAGEX ( UNION ( SELECTCOLUMNS ( 'Table 1', "Value", 'Table 1'[Value] ), SELECTCOLUMNS ( 'Table 2', "Value", 'Table 2'[Value] ) ), [Value] )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 rogerthat ,
Due to I don't know your data model, here I create a sample to have a test.
Average =
AVERAGEX (
UNION (
SELECTCOLUMNS ( 'Table 1', "Value", 'Table 1'[Value] ),
SELECTCOLUMNS ( 'Table 2', "Value", 'Table 2'[Value] )
),
[Value]
)
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.