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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
rbalza
Helper III
Helper III

DAX Measure Help - Average

Hi Everyone,

 

I have a matrix table with Rows [Client Name], Column [Month & Year] and Values [Amount]. Would like to get the average of the amount in the column with the context of 1.) Removing the client name with zero or an empty value on the calculation 2.) Dividing the [Client Name] to [Total Amount]

 

For example on the April 2021 column, there were clients that have an empty value in which we're going to be excluded from the calculation

rbalza_1-1623291549840.png

 

 

 

 

1 ACCEPTED SOLUTION
rbalza
Helper III
Helper III

Had to use the quick measure that solves my query 🙂 

Average Revenue per Client =
AVERAGEX(
    KEEPFILTERS(VALUES('Invoices'[XPM Client Name])),
    CALCULATE(SUM('Invoices'[Amount]))
)

 

View solution in original post

1 REPLY 1
rbalza
Helper III
Helper III

Had to use the quick measure that solves my query 🙂 

Average Revenue per Client =
AVERAGEX(
    KEEPFILTERS(VALUES('Invoices'[XPM Client Name])),
    CALCULATE(SUM('Invoices'[Amount]))
)

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.