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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
elJukes
Helper I
Helper I

Ignore slicer in summarize

Hi there

 

I'm trying to calculate how many people have achieved above a certain score across a set of subjects and have run into a problem. I'm trying to use summarize to create a temporary table that counts the number of times a student gets above a certain score:

test_score_over_3 = 

    VAR count_of_grades = 
SUMMARIZE(
FILTER(Tests, [Points] > 3),
Tests[StudentId],
"Count",
COUNT(Tests[Points])
)
VAR percentage = COUNTROWS(FILTER(count_of_grades, [Count] = 3)) / [pupil_count] RETURN IF([pupil_count] = 0, "-", IF(ISBLANK(percentage), 0, percentage))

In the main this works well, but I have come up against a problem when trying to do a particular type of calculation. The Tests table is filtered using slicers on two dimension tables.

 

 

The first table is a student details table, which allows us to filter down students in a particular grade. This is linked to the Tests table on the StudentId column.

 

The second table is a table containing the term which the Test was taken. It's linked to the Tests table on the TermId column.

 

For the calculaton I'm currently working on I need to override the filter from the slicer on the term table, but retain the filter from the slicer on the student table. Is there a straightforward way of adapting the measure above to accept a different TermId to the one currently being filtered on?

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@elJukes ,

 

You may try using CALCULATETABLE.

FILTER ( CALCULATETABLE ( Tests, ALL ( Term[TermId] ) ), [Points] > 3 )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@elJukes ,

 

You may try using CALCULATETABLE.

FILTER ( CALCULATETABLE ( Tests, ALL ( Term[TermId] ) ), [Points] > 3 )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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!

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.

Top Solution Authors