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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

REMOVEFILTER works for all, except one specific subset

I have a Measure that counts the rows of a column and removes the filter of another column.

The Measure looks like this:

Total_Sales = CALCULATE(

    COUNT(Query1[Sale_Number]);
    REMOVEFILTERS(Query1[Months_Until_Return])
)
 

To clarify:

- The 'Total_Sales' for September for the product 'PAPER' is 40.
- The 'Total_Sales' for all products is 6895.

 
I created a card to display the 'Total_Sales' for each product. Even if I include the 'Months_Until_Return' filter, the 'Total_Sales' should remain unchanged due to the REMOVEFILTERS function in the Measure. However, for the product 'PAPER', the value returned is 23 instead of 40.
For example:
Captura de pantalla 2024-11-27 174109.png
Captura de pantalla 2024-11-27 174120.png
while for other products the value remains unchanged:
yannis_tnp_0-1732726015929.png

 

yannis_tnp_2-1732726037829.png

 

 

and the total (when nothing is selected) is correct:

yannis_tnp_3-1732726081755.png

 

Is it a PowerBI issue or am I missing something?
 
Thank you very much for your help.
Status: Investigating

Hi @yannis_tnp ,

 

I did some testing and failed to reproduce your problem, please provide your sample data.Please check if your first case is applying a page level filter.
Use Weeknum:

vtianyichmsft_0-1732778151418.png

vtianyichmsft_1-1732778166314.png


Use Month:

vtianyichmsft_2-1732778204038.png

 

vtianyichmsft_3-1732778215827.png


 

Best regards,
Community Support Team_ Scott Chang

 

 

 

Comments
v-tianyich-msft
Community Support
Status changed to: Investigating

Hi @yannis_tnp ,

 

I did some testing and failed to reproduce your problem, please provide your sample data.Please check if your first case is applying a page level filter.
Use Weeknum:

vtianyichmsft_0-1732778151418.png

vtianyichmsft_1-1732778166314.png


Use Month:

vtianyichmsft_2-1732778204038.png

 

vtianyichmsft_3-1732778215827.png


 

Best regards,
Community Support Team_ Scott Chang