我建立了一个SSRS报告,其中有一个表,我想通过使用表中的底部N过滤器来显示底部3个值的结果。该代码为每个主题计算出一个Progress值,并针对该主题在表格中显示该值,这就是我试图用来过滤表格以显示最低的三个主题的值。这是在表中完美显示该值的代码,但是在底部3个过滤器中使用该代码时,不同的学生得到的行数不同! -任何建议。
=Iif(IsNothing(LookUp(CStr(Fields!LearnerID.Value) & Fields!Subject_Name.Value & Fields!YearCode.Value & " " & Parameters!AP.Value & " Attain", CStr(Fields!Learner_ID.Value) & Fields!Subject_Name.Value & Fields!Template_Column_Name.Value, Fields!Value.Value, "DS_Assessments_LKP")), Nothing, Round((LookUp(CStr(Fields!LearnerID.Value) & Fields!Subject_Name.Value & Fields!YearCode.Value & " " & Parameters!AP.Value & " Attain", CStr(Fields!Learner_ID.Value) & Fields!Subject_Name.Value & Fields!Template_Column_Name.Value, Fields!Progress8Points.Value, "DS_Assessments_LKP") - CDbl(LookUp(Parameters!A8_Year.Value & Switch(InStr(Fields!Subject_Name.Value," French German Urdu Science Biology Chemistry Physics Humanities Geography History "), "EBC", Fields!Subject_Name.Value = "Mathematics", "MAT", Fields!Subject_Name.Value = "English" OR Fields!Subject_Name.Value = "English Literature", "ENG", True, "OTH") & Round(Fields!KS2_Avg_Fine_Level_Score.Value, 1), Fields!LookupData1.Value & Fields!LookupData3.Value & Fields!LookupData4.Value, Fields!ReturnData.Value / Switch(Fields!LookupData3.Value = "ENG", 2, Fields!LookupData3.Value = "MAT", 2, Fields!LookupData3.Value = "EBC", 3, Fields!LookupData3.Value = "OTH", 3, True, 0), "DS_Attainment8Estimates_LKP"))), 2))