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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
SarikaB
Regular Visitor

Calculation error in measure for Average per Item Category

Hell Team,

 

I am getting the below error while taking out the Average per Item, Could you please help.

 

Average Per Item = CALCULATE(AVERAGE('Job Ledger Entry'[Total Cost (LCY)]),FILTER('Job Ledger Entry','Job Ledger Entry'[Description]))

SarikaB_0-1633260926365.png

Thanks in advance

2 REPLIES 2
VahidDM
Super User
Super User

Hi @SarikaB 

 

You need to complete your filter code:

Average Per Item = CALCULATE(AVERAGE('Job Ledger Entry'[Total Cost (LCY)]),FILTER('Job Ledger Entry','Job Ledger Entry'[Description]="Filter Item/Text"))

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

Fowmy
Super User
Super User

@SarikaB 

Your argument inside FILTER is incomplete, you need assign a value as follows

Average Per Item =
CALCULATE (
    AVERAGE ( 'Job Ledger Entry'[Total Cost (LCY)] ),
    FILTER ( 'Job Ledger Entry', 'Job Ledger Entry'[Description]  = "text")
)

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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