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
gspollock
Helper I
Helper I

REMOVEFILTERS not working

Hi All,

I have a measure that is not removing the row context using REMOVEFILTERS.  I have tried two different versions of the measure:

 

Number Accounts Shared Quarterly = CALCULATE(DISTINCTCOUNT(V_MBA_MMS_REPORT_SHARE[account_id]),REMOVEFILTERS(V_MBA_MMS_REPORT_SHARE[account_id]))

Number Accounts Shared Quarterly = CALCULATE(CALCULATE(DISTINCTCOUNT(V_MBA_MMS_REPORT_SHARE[account_id])),REMOVEFILTERS(V_MBA_MMS_REPORT_SHARE[account_id]))

 

For example these are three account managers and their correct counts:

 

OWNER_EIDNumber Accounts Shared Quarterly
esjwixi2
e1fcaji4
e0kadzh5

 

When I add the ACCOUNT_ID column it has the number of accounts equal to 1.  It is not ignoring the row context.

 

OWNER_EIDACCOUNT_IDNumber Accounts Shared Quarterly
esjwixi38093421
esjwixi548720021
e1fcaji2033221
e1fcaji44100941
e1fcaji45318821
e1fcaji545174601
e0kadzh3473941
e0kadzh12682761
e0kadzh39224241
e0kadzh40591031
e0kadzh544069941

 

Does the fact that the it is counting a column rather than aggregating a measure cause the problem?  If so what is an alternative method?

 

Thanks for your help.

1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

Your first measure works fine in a table visual. Do you happen to have a sort-by columns set up?

 

ppm1_0-1684375873867.png

Pat

Microsoft Employee

View solution in original post

2 REPLIES 2
ppm1
Solution Sage
Solution Sage

Your first measure works fine in a table visual. Do you happen to have a sort-by columns set up?

 

ppm1_0-1684375873867.png

Pat

Microsoft Employee

It was sorting on the measure.  I didn't set it to that.  It is now working.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.