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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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