Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
rogerthat
Helper I
Helper I

Missing 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

 

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.

 

1 ACCEPTED SOLUTION
Anonymous
Not 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.

vrzhoumsft_0-1686809780681.png

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.

 

View solution in original post

1 REPLY 1
Anonymous
Not 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.

vrzhoumsft_0-1686809780681.png

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.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.