Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
Is there a way to add let's say if I had additional data from Table 2 into a measure to fully add the correct average values?
Data to include would the days not included, in this case 7, to equal 0.
{0,0,0,0,0,0,0,0,0,0,0}
So in reality it should be Average = {5,5,8,6,8,6,0,0,0,0,0,0,0,0,0,0,0} -->2.24
Maybe it can't be done but just wondering if its possible.
Solved! Go to Solution.
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.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |