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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
puneethjp
Helper II
Helper II

Removefilters not working as expected.

Hi, 

 

I have list of filters as below. 

puneethjp_0-1697684268360.png

 

Requirement: 

Incr. $ share`=Sum(incr. $)/SUM(mega category $)*100 Numerator= sum(incr $ for any selected in filters)Denominater : disregard any filters:  the ppg,mfg, brand,catogery and consider only mega catogery

 

I have written a DAX query as : 

$ increment share = CALCULATE(DIVIDE(SUM(Fact_Promo_Scorecard[incr_dollar]), CALCULATE(SUM(Fact_Promo_Scorecard[incr_dollar]),REMOVEFILTERS(Dim_Product[mi_ppg1],Dim_Product[category],Dim_Product[mi_key_brand])
,REMOVEFILTERS(Dim_Market[mi_key_mfr]))))*100.  
 
Got an output as below: Which is equal to one. 
 
puneethjp_1-1697684268363.png

 

 

As shown below, the first half and second half of the query is giving me same values: 

 

The first section yellow and second section green are actually giving us same values . When divided it is 1. multiplied it is 100.

 

Could you please help me with the query.

 

Thanks 

Puneeth

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @puneethjp ,

 

Consider using other DAX functions: If the "REMOVEFILTERS" function is not giving you the desired results, you can try using other DAX functions like "ALL", "ALLEXCEPT", or "CALCULATETABLE" to manipulate the filter context and achieve the desired outcome.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @puneethjp ,

 

Consider using other DAX functions: If the "REMOVEFILTERS" function is not giving you the desired results, you can try using other DAX functions like "ALL", "ALLEXCEPT", or "CALCULATETABLE" to manipulate the filter context and achieve the desired outcome.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Hi @Anonymous 

 

KeepFilters , All Except  worked. 

 

Thank you. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.