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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.