this is my measure syntax also please see attachment
SB Math Average =
VAR ALL_SB_MAth =
FILTER(Assessments,Assessments[TEST_SHORTNAME] = “SB” && Assessments[SUBLEVEL1_SHORTNAME] = “MATH” )
VAR ALLDIST=
ALL(DISTRICT[DISTRICT_ID])
//filter by all school
VAR ALLSchool =
ALL(School_LKP)
Well, in this case, I’m presuming that when you say “ALL” option is not working you mean that eventhough when you make a selection in the slicer for Schools, the percentages should not change upon those selections.
Below is the measure alongwith the screenshot of the final results provided for the reference -
This sample will give me a good explanation of using the ALL function.
I do believe I should have 3 result for each year. Sample uses year 2018
Example When Year is selected – Then I have from the 3 Option from the district slice
ALL District should give me Schools 410 418 425 441 and 449
DISTRICTID =‘001’ schools → 410 418 425
.DISTRICTID =‘002’ Schools ->441 and 449
Below is a sample SQL script
– All Schools
SELECT avg (Performance_Score)
FROM Assessments a
Join School_LKP s on A.DISTRICTID = s.DISTRICT_ID
WHERE S.school_Year= 2018
AND Assessments[TEST_SHORTNAME] = “SB” and
Assessments[SUBLEVEL1_SHORTNAME] = “math”
-- 410 418 425 School
SELECT avg (Performance_Score)
FROM Assessments a
Join School_LKP s on A.DISTRICTID = s.DISTRICT_ID and A.DISTRICTID =‘001’
WHERE S.school_Year= 2018
AND Assessments[TEST_SHORTNAME] = “SB” and
Assessments[SUBLEVEL1_SHORTNAME] = “math”
–441 and 449
SELECT avg (Performance_Score)
FROM Assessments a
Join School_LKP s on A.DISTRICTID = s.DISTRICT_ID and A.DISTRICTID =‘002’
WHERE S.school_Year= 2018
AND Assessments[TEST_SHORTNAME] = “SB” and
Assessments[SUBLEVEL1_SHORTNAME] = “math”
Below is the results I am expected. because I am filtering by year and District then all schools within that selection. The result you send me is for All of 2018 which is correct but the result should change when the year changes also.
The information below is base on 2018 results. I do believe I should have 3 different number within school year
Please see attach excel sheet with data break down an summary
Now, this really helps when you provide what end results you’re actually trying to achieve. So just a minor tweak in the measure. Under the “ALL()” function, previously it was referenced as entire table i.e., “ALL( School_LKP ) )”, just change it to “ALL( School_LKP[SCHOOL_NAME] ) )” and now you’ll be able to see the results as you’re expecting. Below is the overall measure alongwith the screenshot of the final results provided for the reference purposes -
Thank you very much. I have also got a better understanding of using the ALL function because it was my data and I know what the result should be using SQL script which is my strength.