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
Anonymous
Not applicable

Create measure in Power BI using CALCULATE using filter that ignore slicer selection

I am trying to create a measure With calculate function which has a filter also. but when I applied that measure to the table it was not overriding the slicer.

TDP (test)* = var TDP_ITEM = CALCULATE(SUM(src_fact[WEIGHTED_DISTRIBUTION__W_]),FILTER(src_product,src_product[HIER_LEVEL_NAME] = "ITEM"))

Is there any way that I can get rid of this slicer on this DAX?

 

anupam676_0-1645786992416.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello

 

you can try using ALL() on the src_product table 

Like this 

 

TDP (test)* = var TDP_ITEM = CALCULATE(SUM(src_fact[WEIGHTED_DISTRIBUTION__W_]),FILTER(ALL(src_product),src_product[HIER_LEVEL_NAME] = "ITEM"))

 

 

Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hello

 

you can try using ALL() on the src_product table 

Like this 

 

TDP (test)* = var TDP_ITEM = CALCULATE(SUM(src_fact[WEIGHTED_DISTRIBUTION__W_]),FILTER(ALL(src_product),src_product[HIER_LEVEL_NAME] = "ITEM"))

 

 

Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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