// Home table: Capacity Seats offered = SUM ( Capacity[Offered count] ) // Home table: Capacity Classroom attendance = SUM ( Capacity[Attendance count] ) // Home table: Capacity Seat difference = IF ( NOT ISBLANK ( [Seats offered] ), [Seats offered] - [Classroom attendance] ) // Home table: Capacity Attendance rate = DIVIDE ( [Classroom attendance], [Seats offered] ) // Home table: Capacity Selected target = DIVIDE ( SELECTEDVALUE ( 'Attendance target'[Target percent], 95 ), 100 ) // Home table: Capacity Additional attendances = VAR TargetPct = SELECTEDVALUE ( 'Attendance target'[Target percent], 95 ) RETURN SUMX ( Capacity, VAR Required = QUOTIENT ( Capacity[Offered count] * TargetPct + 99, 100 ) RETURN MAX ( 0, Required - Capacity[Attendance count] ) ) // Home table: Grants ALG 2023/24 = CALCULATE ( SUM ( Grants[Grant amount] ), Grants[Ending year] = 2024 ) // Home table: Grants ALG 2024/25 = CALCULATE ( SUM ( Grants[Grant amount] ), Grants[Ending year] = 2025 ) // Home table: Grants ALG change = VAR PriorAmount = [ALG 2023/24] VAR CurrentAmount = [ALG 2024/25] RETURN IF ( NOT ISBLANK ( PriorAmount ) && NOT ISBLANK ( CurrentAmount ), CurrentAmount - PriorAmount ) // Home table: Registrations New registrations = VAR Y = MAX ( 'Registration year'[Ending year] ) RETURN CALCULATE ( SUM ( Registrations[Registration count] ), FILTER ( ALL ( 'Registration year' ), 'Registration year'[Ending year] = Y ) ) // Home table: Registrations Previous year = VAR Y = MAX ( 'Registration year'[Ending year] ) - 1 RETURN CALCULATE ( SUM ( Registrations[Registration count] ), FILTER ( ALL ( 'Registration year' ), 'Registration year'[Ending year] = Y ) ) // Home table: Registrations Registration change = VAR PreviousN = [Previous year] VAR CurrentN = [New registrations] RETURN IF ( NOT ISBLANK ( PreviousN ) && NOT ISBLANK ( CurrentN ), CurrentN - PreviousN ) // Home table: Registrations Growth rate = DIVIDE ( [Registration change], [Previous year] ) // Home table: Registrations Growth rank = VAR Delta = [Registration change] RETURN IF ( NOT ISBLANK ( Delta ), RANKX ( FILTER ( ALLSELECTED ( Trade[Trade] ), NOT ISBLANK ( [Registration change] ) ), [Registration change], Delta, DESC, DENSE ) )