Help w/ALLSELECTED when using Slicers

stbrooks13

New Member
Joined
Dec 9, 2014
Messages
40
I'm in campus recruiting and we have divided our target schools into three levels (National, Regional, Local).

I'm creating scores for our target schools based on how they compare to the school level's average.

I'm able to create the formulas in a table view using ALLSELECTED(Schools(School)) in my calculations. But, as soon as a single school is selected, the formulas all show 100%.

How do I keep the School(School Level) in the formulas? Below is an example of one of the school level formulas that I'm comparing the school's actual to:

School Level Sign-On Bonus Average = CALCULATE(SUM(Activity[Sign-On Bonuses]),ALLSELECTED(School[School]))/CALCULATE(DISTINCTCOUNT(School[School]),ALLSELECTED(School[School]))
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Need to know model design and look of desired output to help. Not enough info provided to suggest correct measures. Thanks.
 
Upvote 0
Sure, see here: https://drive.google.com/file/d/1CQ2JG39JD4UKWY6I4ofw0861L6Jyb_JV/view?usp=sharing

[FONT=&quot]The drop down only impacts the Score Totals on the right. The true Score Totals figures are in the center.[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]When USC is selected, a score of 52.38 appears, when I want it to show 0.[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]The scores shown when USC is selected is the maximum amount available for those categories, but they should show 0.[/FONT]
 
Upvote 0
ALLSELECTED means all items that are included in filters and slicers. If you select a single school the you will get results for the data as if that were the only school in your data. Not that surprised you get100%.

Are you sure you don’t want ALL?
 
Upvote 0
Thank you. No I don't want ALL because then the school would be being compared to all schools. I want the school to be compared to the schools only in its level (National, Regional or Local).
 
Upvote 0
Do you think using ALLEXCEPT(School,School[School Level]) in place of ALLSELECTED(School,School[School]) would work?
 
Upvote 0
Filter (
ALL ( School ),
School [School Level] = EARLIER ( School [School Level] )
)

Instead of ALLSELECTED.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top