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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.