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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DAsilar
New Member

Average without Filter context

Hi.

Im trying to create a measure (average of grading), with has filter context with the classes(Math, history, geographics), but doesnt change when i filter a student name.

 

My tablle have the Fields: studentsname, classes, content, test_grade.

For example: 

Students_name: Jhon,

Classes: Math

Contents: geometry, calculation, logic, etc.

Test_grading: 9.5, 10, 8.5, etc

 

I need to create a measure with the average of all test_grade students for each classes.

I want to compare the Math average of each student with de general Math average(of all student).

And my difficulty is to create the all_students average for each class. Because when filter the student name, the general average changes too the same average of the selected student.

 

Can anyone Help me How o can do this?

 

 

 

 

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @DAsilar 

 

Try to use the REMOVEFILTERS DAX function to create a measure, something like this:

Average =
CALCULATE(
    AVERAGE( table[Test_grading] ),
    REMOVEFILTERS( table[Students name] )
)

 

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

 

Appreciate your Kudos!!

 

View solution in original post

2 REPLIES 2
VahidDM
Super User
Super User

Hi @DAsilar 

 

Try to use the REMOVEFILTERS DAX function to create a measure, something like this:

Average =
CALCULATE(
    AVERAGE( table[Test_grading] ),
    REMOVEFILTERS( table[Students name] )
)

 

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

 

Appreciate your Kudos!!

 

Thanks, It was exactly what i need.

Works perfectly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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