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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dokat
Post Prodigy
Post Prodigy

Share Calculation

Hi,

 

I'd like to calculate share based on Region Sales divided by total sales. I created below table by removing interactions between slicer and the table. Sum of my sales values are $2,535,250,045 and breakdown by region is like below. I have additional measures in the same table that needs to interact with the slicer selections therefor i can't calculate share by adjusting interactions,

 

Currently Region Test Measure 2 values change based on slicer selection. Is there anyway to adjust the formula that exclude slicer selection. Basically gives me a static region total so i can calculate share of region regardless of the slicer selection. Appreciate any help!

 

Region Test Measure2 = CALCULATE(Calculate(SUM('Region'[Values]),'POS CY'[Slicer] IN {"L52W"}))

 



 

dokat_0-1646692281289.png

 

1 ACCEPTED SOLUTION

@dokat 
Sure, you either use ALL([Column1], [Column2], [Column3], [Column4]) or you can mention columns that you want to keep filtered ALLEXPECT([Column6]) for example.






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

View solution in original post

5 REPLIES 5
vojtechsima
Super User
Super User

Hi, @dokat ,
If you just add:
ALL([Your Slicer Table Column]
as one of the filters in your CALCULATE expression. It will ignore any filtering applied by this column.

So try playing with something like this:

Region Test Measure2 = CALCULATE(Calculate(SUM('Region'[Values]),ALL([Your SlicerTable Column],'POS CY'[Slicer] IN {"L52W"}))


 






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

@vojtechsima @Thank you for your response. I have 4 slicers, is there a way to expand this formula to include all slicers?

@dokat 
Sure, you either use ALL([Column1], [Column2], [Column3], [Column4]) or you can mention columns that you want to keep filtered ALLEXPECT([Column6]) for example.






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

@vojtechsima Thank you it worked!

@dokat Glad to hear that.






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.