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
Anonymous
Not applicable

Page level filters not applying to visuals that use measures

l have two tables - Table1 and Table2. I have set the relationship many to many with filtering direction as both. I have now set a page level filter so that data from Table1 is being filtered by data from Table2. The filters applied are: Table2, column X = Yes and Table2, column Y = People. This works fine on all visuals containing data from Table1 except when the data is a measure. Where a visual (2x cards and 1x table) is displaying a measure, no filters are applied and it is showing all data from Table1.

 

My measures are:

Measure 1 = IF((SUM('Table1'[column x]<=0),0,(CALCULATE(AVERAGEX('Table1','Table1'[column x]),FILTER('Table1','Table1'[column x]<>0))))
Measure 2 = CALCULATE(IF('Table1'[Measure1]=0,0,CALCULATE(COUNT('Table 1'[column x]),FILTER('Table1',[column x]>0)))
 
Can someone help me to understand why measures are not being affected by the page level filters applied. I am new to using measures and DAX etc so any help is appreciated. I have tried a number of solutions but not getting anywhere!
 
Thank you
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Measures calculate values based on the current filter context. If the measures are not responding to the page level filters, it might be due to the use of functions like `CALCULATE` which can modify the filter context.

If you want your measures to respect the page level filters, you can use the `ALLSELECTED` function within the `CALCULATE` function to maintain the filters that are currently applied to the report page.

Below is the official link about 'ALLSELECTED':

ALLSELECTED function (DAX) - DAX | Microsoft Learn

Best Regards,

Xianda Tang

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
Anonymous
Not applicable

Hi @Anonymous ,

Measures calculate values based on the current filter context. If the measures are not responding to the page level filters, it might be due to the use of functions like `CALCULATE` which can modify the filter context.

If you want your measures to respect the page level filters, you can use the `ALLSELECTED` function within the `CALCULATE` function to maintain the filters that are currently applied to the report page.

Below is the official link about 'ALLSELECTED':

ALLSELECTED function (DAX) - DAX | Microsoft Learn

Best Regards,

Xianda Tang

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

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors