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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors