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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors