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

remove filter not working

I'm currently writing a DAX that will get the percentage between the total and the filtered amount.

 

This is what I have so far:

 

Totals =
var ABC = '_sp-Total Invoiced to Date - Current Month'[Total Invoiced Current] - [Current Cost & Expense]
 
RETURN divide((CALCULATE(ABC, REMOVEFILTERS('_sp-Opportunity Fees and Variations'[NAME]))) , (CALCULATE(ABC, ALLSELECTED('_sp-Opportunity Fees and Variations'))))
 
The problem is regardless of what filter I select I always get 100%. 
 
I tried creating a separte measure and still the REMOVEFILTERS is not working.
 
Div1 =

var ABC = '_sp-Total Invoiced to Date - Current Month'[Total Invoiced Current] - [Current Cost & Expense]

return (CALCULATE(ABC, REMOVEFILTERS('Projects'[Project Name])))
 
Thank you!
4 REPLIES 4
wdx223_Daniel
Super User
Super User

CALCULATE function can not change the value of variables

Anonymous
Not applicable

@wdx223_Daniel 

 

Do you have any suggestions on how can I achieve my goal?

 

Appreciate!

Create a measure of ABC instead of variables and try again. Once a measure was calculated and assigned to variables, the value was static, CALCULATE function can not change the value of variables just like Daniel mentioned.

Anonymous
Not applicable

@jameszhang0805 

 

Still the same behavior. I already created a measure instead of a variable.

 

Div1 =
(CALCULATE([ABC], REMOVEFILTERS('_sp-Total Invoiced to Date - Current Month')))

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (29)