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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Karma777
Frequent Visitor

Using Remove Filter function in measure not working

Hi,

I have a simple visual like below which is a simple bar chart of "Demand" vs "Date-time"

Karma777_0-1676363548495.png

The Demand is a measure calculated as : 

Demand Rap = (CALCULATE(sum(Facts[Assignment Committed Work])+sum(Facts[Assignment Proposed Work]), filter(Projects, Projects[Division Priority Project Name] <> BLANK())))/168

There are many page level filters on the report as below. 
Karma777_1-1676364315947.png


Now my requirement is, I would like to modify my measure so that selection of "Resource Is Active" filter doesn't impact the calculation ( since there are other visuals on the page which need this filter ). I tried modifying the measure using 'REMOVEFILTER' function but its not working as expected.

Demand Rap exc resoureceIsActive = (CALCULATE(sum(Facts[Assignment Committed Work])+sum(Facts[Assignment Proposed Work]),REMOVEFILTERS(Resources[ResourceIsActive]), filter(Projects, Projects[Division Priority Project Name] <> BLANK())))/168


Please help me in understanding what am I missing here and what should be the correct way to do this.
Thansk you!

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Karma777 ,

 

Here I create a sample file to have a test.

Facts:

RicoZhou_1-1676451649210.png

Projects:

RicoZhou_2-1676451665627.png

Project:

RicoZhou_3-1676451676466.png

Relationship:

RicoZhou_4-1676451689940.png

I suggest you to create [Demand Rap exc resoureceIsActive] measure based on [Demand Rap] measure.

Demand Rap exc resoureceIsActive = 
CALCULATE([Demand Rap],REMOVEFILTERS(Resources[ResourceIsActive]))

Result is as below.

RicoZhou_0-1676451612467.png

 

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Karma777 ,

 

Here I create a sample file to have a test.

Facts:

RicoZhou_1-1676451649210.png

Projects:

RicoZhou_2-1676451665627.png

Project:

RicoZhou_3-1676451676466.png

Relationship:

RicoZhou_4-1676451689940.png

I suggest you to create [Demand Rap exc resoureceIsActive] measure based on [Demand Rap] measure.

Demand Rap exc resoureceIsActive = 
CALCULATE([Demand Rap],REMOVEFILTERS(Resources[ResourceIsActive]))

Result is as below.

RicoZhou_0-1676451612467.png

 

Best Regards,
Rico Zhou

 

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

Hi @Anonymous , Thank you for taking your time to answer. I tried doing this but it still is giving the same result.
Also could you please help me understand how is the data being calculated in the example you showed. Since the report is filtered to resourcetype in (2,20), project p3 value should be ignored. Similarly p4 should be ignored as Division Priority Project Name filed is empty. So I assume the final chart should show only 2 projects- p1 & p2 with the values 3 & 5. Could you please explain how we are getting 5 & 8 in the chart?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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