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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
julian_malisano
New Member

REMOVEFILTERS not working in Calculate

Hello All,

 

I'm working through the PL-300 labs for Power BI and have encountered an issue using the REMOVEFILTERS function in CALCULATE. The context doesn't seem to evaluate properly. Link to lab

According to the lab, this expression:

Sales All Region =  CALCULATE(SUM(Sales[Sales]), REMOVEFILTERS(Region))

Should evaluate to:

julian_malisano_0-1667557893323.png

 

However, when using the exact same formula, I get:

julian_malisano_1-1667557987558.png

 

Any ideas?



1 ACCEPTED SOLUTION

Thanks for the pointers! Turns out it wasn't data model related, but a mega-rookie mistake. Somehow I had selected a Calculated Column rather than a Measure to write the DAX!...

View solution in original post

2 REPLIES 2
daXtreme
Solution Sage
Solution Sage

I can't see anything wrong with this... You have not noticed that the formats of Sum of Sales and Sum Of Sales All Region are different but they are in fact the same numbers. What's more, it really does matter where you take your columns from. It's not that you can drop any column from any table (when they have the same names) and expect the report to calculate the same. No, it does not work like that. Also measures are sensitive to which columns you use in them and which you put on the canvas...

 

Please remember one golden rule of dimensional modeling: You should never use columns from fact tables on your canvas. Only slicing by dimensions is allowed.

Thanks for the pointers! Turns out it wasn't data model related, but a mega-rookie mistake. Somehow I had selected a Calculated Column rather than a Measure to write the DAX!...

Helpful resources

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