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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.