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
febrina
New Member

Average from Calculated Measures in different Table

Hi, I have 8 Tables in total

and I have created measure for each table

Now, I have 8 measures.

 

Can I calculate average from those 8 measures? If can, please show me the way.

Thank you!

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@febrina , if these are different measure then you have to try like

( [Measure 1] + [Measure 2] + [Measure 3] + [Measure 4] + [Measure 5] + [Measure 6] + [Measure 7] + [Measure 8]) /8

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Samarth_18
Community Champion
Community Champion

Hi @febrina ,

 

You can create a measure with below code:-

 

AVERAGE =
VAR _num = [Measure1] + [Measure2] + [Measure3] + [Measure4] + [Measure5] + [Measure6] + [Measure7] + [Measure8]
VAR _den =
    IF ( ISBLANK ( [Measure1] ), 0, 1 ) + IF ( ISBLANK ( [Measure2] ), 0, 1 )
        + IF ( ISBLANK ( [Measure3] ), 0, 1 )
        + IF ( ISBLANK ( [Measure4] ), 0, 1 )
        + IF ( ISBLANK ( [Measure5] ), 0, 1 )
        + IF ( ISBLANK ( [Measure6] ), 0, 1 )
        + IF ( ISBLANK ( [Measure7] ), 0, 1 )
        + IF ( ISBLANK ( [Measure8] ), 0, 1 )
RETURN
    Divide(_num , _den)

 

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
Samarth_18
Community Champion
Community Champion

Hi @febrina ,

 

You can create a measure with below code:-

 

AVERAGE =
VAR _num = [Measure1] + [Measure2] + [Measure3] + [Measure4] + [Measure5] + [Measure6] + [Measure7] + [Measure8]
VAR _den =
    IF ( ISBLANK ( [Measure1] ), 0, 1 ) + IF ( ISBLANK ( [Measure2] ), 0, 1 )
        + IF ( ISBLANK ( [Measure3] ), 0, 1 )
        + IF ( ISBLANK ( [Measure4] ), 0, 1 )
        + IF ( ISBLANK ( [Measure5] ), 0, 1 )
        + IF ( ISBLANK ( [Measure6] ), 0, 1 )
        + IF ( ISBLANK ( [Measure7] ), 0, 1 )
        + IF ( ISBLANK ( [Measure8] ), 0, 1 )
RETURN
    Divide(_num , _den)

 

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Hi, samarth_18!

It's worked, thankyou so much!

amitchandak
Super User
Super User

@febrina , if these are different measure then you have to try like

( [Measure 1] + [Measure 2] + [Measure 3] + [Measure 4] + [Measure 5] + [Measure 6] + [Measure 7] + [Measure 8]) /8

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi amitchandak,

 

Your solution is worked.

But, for some cases, there is blank in the measurement

For example.

Measure 1 = 3

Measure 2 = 2

Measure 3 = null / blank

Measure 4 = 3

 

So, I want the new measure like below:

([Measure 1] + [Measure 2] + [Measure 3] + [Measure 4])/3

= (3+2+3)/3

= 2.67

 

Could you help me on this? Thanks in advance

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors