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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-stephen-msft
Community Support
Community Support

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
v-stephen-msft
Community Support
Community Support

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 @v-stephen-msft 

 

KeepFilters , All Except  worked. 

 

Thank you. 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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