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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ngct1112
Post Patron
Post Patron

DAX measure - How to find the Average of measure

Hi all,

 

Here is a situation I am encountering. I would like to find the average value of 3 measures [A], [B], [C], at the same time, ignore if they are Blank().

May I know if there is any way I can handle it?

 

Great thanks

1 ACCEPTED SOLUTION

@ngct1112 , Change the measure like

Average = Sumx(values(Test[ID]), divide([(A)]+ [(B)]+ [(C)], if(isblank([(A)]),0,1) +if(isblank([(B)]),0,1) +if(isblank([(C)]),0,1) ))
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

4 REPLIES 4
amitchandak
Super User
Super User

@ngct1112 , Try a new measure like

 

divide([A]+ [B]+ [C], if(isblank([A]),0,1) +if(isblank([B]),0,1) +if(isblank([C]),0,1) )

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 , thanks for your reply. But is it possible I could get the sub-total of average as "1.33+3.5+4.5+5.5+9.5+9.67+11.33+13 = 58.33"?

As you may see here, the total average should be 58.33 rather than 50.67

ngct1112_0-1611204998435.png

Do you think is there any way the measure could be modified

I have uploaded a simplified example Example.pbix 

@ngct1112 , Change the measure like

Average = Sumx(values(Test[ID]), divide([(A)]+ [(B)]+ [(C)], if(isblank([(A)]),0,1) +if(isblank([(B)]),0,1) +if(isblank([(C)]),0,1) ))
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

@amitchandak , it works. It really awesome. Great thanks

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