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
mogugu_84
Helper I
Helper I

calculate contribution to total ignoring certain field selection

i need to create a measure of contribution to total sales per each area (brick), it needs to ignore all product selection (in this case product =molecule),

this is what i wrote so far, i have tried "ALL" and "Removefilters" forumla, neither works, when i click on the molecule silcer to the right, the numbers change. i just need the numbers to NOT respond the the molecule selection, anyone can help with that? 

mogugu_84_1-1737685380366.png

 

mogugu_84_2-1737685489380.png

 

 

5 REPLIES 5
Anonymous
Not applicable

Hi @mogugu_84 ,

 

If you want to ignore all product selection, you can try canceling the interaction from your slicer to the visual contains Contribution 2.

vstephenmsft_0-1737943660147.png

Reference:

Change how visuals interact in a report - Power BI | Microsoft Learn

 

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

anmolmalviya05
Super User
Super User

Hi @mogugu_84, Hope you are doing good!

Please try the below measure:

Contribution to Total Sales =
VAR TotalSales =
CALCULATE(
[MAT],
REMOVEFILTERS('Def market'[Molecule]) -- Ensures Molecule filters are ignored
)
RETURN
[MAT] / TotalSales

mogugu_84_0-1737699329349.png

thank you, i tried this "removefilters" formula, hope it got it right in the above, but the calculation is not correct, when no molecule is seleted, now it shows all 100% for each row item (area/brick)

mogugu_84_1-1737699393830.png

 

Also when i do select one of the molecules, the numbers still changes as well....

mogugu_84_2-1737699533670.png

 

Anonymous
Not applicable

Hi @mogugu_84 ,

 

Check if Solved: Filter and Allexcept - Microsoft Fabric Community works for you.

 

Cheers

 

ChenuSing

Sorry CheenuSing, can you be a bit more specific? (Sorry I should have copied the formula as text so that is easier...but now I'm on my mobile)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors