Evaluation Scenario - Power Query

goko

New Member
Joined
Jan 3, 2022
Messages
12
Office Version
  1. 2021
Platform
  1. Windows
Hi,
Thanks for reading this and double thanks if you give me a hint.

I have Student Exam Records Sheet with following columns.

ColumnsDesc.
SchoolMultiple Schools
Enrollment NoIs unique across all schools
Student Name
Course CodeThere are multiple [Course Code], but a student can enroll in only one
Semester NameEach course [Course Code] can have multiple Semester Name per course code but every course has a fixed number of Semesters with same name
Exam NameEach Semester [Semester Name] can have multiple Exams [Exam Name] and this can be different for diff Course
Exam Date
Total Marks
Marks Obtained
Exam Status>=40% is pass else fail

I'm creating a Final Status sheet to check if a student has cleared all exams [Exam Name] of each [Semester Name] and
- if a particular exam record is missing or
- the student failed

I want to have a Table like following
SchoolEnrollment NoCourse CodeSem. 1Sem. 2Sem.3Sem.4
x
123​
2000​
okfail in r1, missing t1okmissing t1
y
112​
2003​
okokokmissing x1, fail in p1





How I'm getting by at the moment (with out power query)

  1. I'll separate student by [Course Code] and copy School, Enrollment No to separate sheet
  2. I'll create columns for each semester e.g. Sem.1, Sem.2 etc.
  3. I'm going create some combination of multiple if & countifs, where i'll be checking each criteria and returning either 1, 0 or error message if the some exam is not found and concatenate it all


XL2BB [Exam Record] MiniSheet Code Below

Scenario-2.xlsx
ABCDEFGHIJ
1SchoolEnrollment NoStudent NameCourse CodeSemester NameExam NameExam DateTotal MarksMarks ObtainedExam Status
2South111Cristina Alvarez2012Sem.1R1########5030pass
3South111Cristina Alvarez2012Sem.1T3########2013pass
4South111Cristina Alvarez2012Sem.1T2########2013pass
5South111Cristina Alvarez2012Sem.1Final########5024pass
6South111Cristina Alvarez2012Sem.1PROJECT########10058pass
7South111Cristina Alvarez2012Sem.1T1########2013pass
8South111Cristina Alvarez2012Sem.2T2########209pass
9South111Cristina Alvarez2012Sem.2T3########2013pass
10South111Cristina Alvarez2012Sem.2R1########5045pass
11South111Cristina Alvarez2012Sem.2Final########5026pass
12South111Cristina Alvarez2012Sem.2T1########2015pass
13South111Cristina Alvarez2012Sem.2PROJECT########10088pass
14South111Cristina Alvarez2012Sem.3R1########5039pass
15South111Cristina Alvarez2012Sem.3T2########2017pass
16South111Cristina Alvarez2012Sem.3PROJECT########10078pass
17South111Cristina Alvarez2012Sem.3T1########2012pass
18South111Cristina Alvarez2012Sem.3T3########206fail
19South111Cristina Alvarez2012Sem.3Final########5028pass
20South111Cristina Alvarez2012Sem.3T4########2011pass
21South111Cristina Alvarez2012Sem.4R1########5030pass
22South111Cristina Alvarez2012Sem.4Final########5026pass
23South111Cristina Alvarez2012Sem.4PROJECT########10086pass
24South111Cristina Alvarez2012Sem.4T3########2012pass
25South111Cristina Alvarez2012Sem.4T2########2012pass
26South111Cristina Alvarez2012Sem.4T1########208pass
27South111Cristina Alvarez2012Sem.5T2########2010pass
28South111Cristina Alvarez2012Sem.5T3########2011pass
29South111Cristina Alvarez2012Sem.5T1########209pass
30South111Cristina Alvarez2012Sem.5Final########5010fail
31South111Cristina Alvarez2012Sem.6Final########5022pass
32South111Cristina Alvarez2012Sem.6T1########2010pass
33South111Cristina Alvarez2012Sem.6PROJECT########10075pass
34South111Cristina Alvarez2012Sem.6T2########2012pass
35South111Cristina Alvarez2012Sem.6R1########5025pass
36South888Jordan Norris2015Sem.1Mod Exam 3########2016pass
37South888Jordan Norris2015Sem.1Mod Exam 2########2015pass
38South888Jordan Norris2015Sem.1Mod Exam 1########2010pass
39South888Jordan Norris2015Sem.1Mod Exam 7########208pass
40South888Jordan Norris2015Sem.1Mod Exam 6########2014pass
41South888Jordan Norris2015Sem.1Mod Exam 5########2010pass
42South888Jordan Norris2015Sem.1R2########2020pass
43South888Jordan Norris2015Sem.1R1########2020pass
44South888Jordan Norris2015Sem.1PROJECT########10078pass
45South888Jordan Norris2015Sem.1R3########2015pass
46South888Jordan Norris2015Sem.1Final########5021pass
47South888Jordan Norris2015Sem.1R5########2010pass
48South888Jordan Norris2015Sem.1R4########2020pass
49South888Jordan Norris2015Sem.2Mod Exam 2########2010pass
50South888Jordan Norris2015Sem.2Mod Exam 1########2015pass
51South888Jordan Norris2015Sem.2Mod Exam 3########2010pass
52South888Jordan Norris2015Sem.2Mod Exam 5########2011pass
53South888Jordan Norris2015Sem.2Mod Exam 4########2010pass
54South888Jordan Norris2015Sem.2Final########5026pass
55South888Jordan Norris2015Sem.2R1########2020pass
56South888Jordan Norris2015Sem.2PROJECT########10075pass
57South888Jordan Norris2015Sem.2R2########2018pass
58South888Jordan Norris2015Sem.2R4########208pass
59South888Jordan Norris2015Sem.2R3########208pass
60South888Jordan Norris2015Sem.3Mod Exam 3########2010pass
61South888Jordan Norris2015Sem.3Mod Exam 2########209pass
62South888Jordan Norris2015Sem.3Mod Exam 4########2011pass
63South888Jordan Norris2015Sem.3Mod Exam 6########2013pass
64South888Jordan Norris2015Sem.3Mod Exam 5########2011pass
65South888Jordan Norris2015Sem.3R1########2015pass
66South888Jordan Norris2015Sem.3PROJECT########10046pass
67South888Jordan Norris2015Sem.3R2########2015pass
68South888Jordan Norris2015Sem.3Mod Exam 1########2018pass
69South888Jordan Norris2015Sem.3Final########5022pass
70South888Jordan Norris2015Sem.4Mod Exam 1########208pass
71South888Jordan Norris2015Sem.4Final########5024pass
72South888Jordan Norris2015Sem.4Mod Exam 2########2012pass
73South888Jordan Norris2015Sem.4Mod Exam 4########2010pass
74South888Jordan Norris2015Sem.4Mod Exam 3########2013pass
75South888Jordan Norris2015Sem.4R1########2019pass
76South888Jordan Norris2015Sem.4PROJECT########10072pass
77South888Jordan Norris2015Sem.4R2########2019pass
78South888Jordan Norris2015Sem.4R4########2020pass
79South888Jordan Norris2015Sem.4R3########2020pass
80South888Jordan Norris2015Sem.5Mod Exam 2########209pass
81South888Jordan Norris2015Sem.5Mod Exam 1########2013pass
82South888Jordan Norris2015Sem.5Mod Exam 4########2015pass
83South888Jordan Norris2015Sem.5Mod Exam 3########2012pass
84South888Jordan Norris2015Sem.5Final########5026pass
85South888Jordan Norris2015Sem.5R1########2019pass
86South888Jordan Norris2015Sem.5PROJECT########10060pass
87South888Jordan Norris2015Sem.5R3########2019pass
88South888Jordan Norris2015Sem.5R2########2019pass
89South888Jordan Norris2015Sem.6Mod Exam 1########2010pass
90South888Jordan Norris2015Sem.6Mod Exam 2########2010pass
91South888Jordan Norris2015Sem.6Mod Exam 3########2011pass
92South888Jordan Norris2015Sem.6R1########2020pass
93South888Jordan Norris2015Sem.6PROJECT########10092pass
94South888Jordan Norris2015Sem.6Final########5026pass
Sheet1










xL2BB Mini sheet for Exam Dictionary

Scenario-2.xlsx
ABC
1Course CodeSemester NameExam Name
22012Sem.1R1
32012Sem.1T3
42012Sem.1T2
52012Sem.1Final
62012Sem.1PROJECT
72012Sem.1T1
82012Sem.2T2
92012Sem.2T3
102012Sem.2R1
112012Sem.2Final
122012Sem.2T1
132012Sem.2PROJECT
142012Sem.3R1
152012Sem.3T2
162012Sem.3PROJECT
172012Sem.3T1
182012Sem.3T3
192012Sem.3Final
202012Sem.3T4
212012Sem.4R1
222012Sem.4Final
232012Sem.4PROJECT
242012Sem.4T3
252012Sem.4T2
262012Sem.4T1
272012Sem.5T2
282012Sem.5T3
292012Sem.5T1
302012Sem.5Final
312012Sem.6Final
322012Sem.6T1
332012Sem.6PROJECT
342012Sem.6T2
352012Sem.6R1
362015Sem.1Mod Exam 3
372015Sem.1Mod Exam 2
382015Sem.1Mod Exam 1
392015Sem.1Mod Exam 4
402015Sem.1Mod Exam 7
412015Sem.1Mod Exam 6
422015Sem.1Mod Exam 5
432015Sem.1R2
442015Sem.1R1
452015Sem.1PROJECT
462015Sem.1R3
472015Sem.1Final
482015Sem.1R5
492015Sem.1R4
502015Sem.2Mod Exam 2
512015Sem.2Mod Exam 1
522015Sem.2Mod Exam 3
532015Sem.2Mod Exam 5
542015Sem.2Mod Exam 4
552015Sem.2Final
562015Sem.2R1
572015Sem.2PROJECT
582015Sem.2R2
592015Sem.2R4
602015Sem.2R3
612015Sem.3Mod Exam 3
622015Sem.3Mod Exam 2
632015Sem.3Mod Exam 4
642015Sem.3Mod Exam 6
652015Sem.3Mod Exam 5
662015Sem.3R1
672015Sem.3PROJECT
682015Sem.3R2
692015Sem.3Mod Exam 1
702015Sem.3Final
712015Sem.4Mod Exam 1
722015Sem.4Final
732015Sem.4Mod Exam 2
742015Sem.4Mod Exam 4
752015Sem.4Mod Exam 3
762015Sem.4R1
772015Sem.4PROJECT
782015Sem.4R2
792015Sem.4R4
802015Sem.4R3
812015Sem.5Mod Exam 2
822015Sem.5Mod Exam 1
832015Sem.5Mod Exam 4
842015Sem.5Mod Exam 3
852015Sem.5Final
862015Sem.5R1
872015Sem.5PROJECT
882015Sem.5R3
892015Sem.5R2
902015Sem.6Mod Exam 1
912015Sem.6Mod Exam 2
922015Sem.6Mod Exam 3
932015Sem.6R1
942015Sem.6PROJECT
952015Sem.6Final
Sheet2
 

Attachments

  • 20220103-001-Image.png
    20220103-001-Image.png
    9.7 KB · Views: 8

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi
Well completed the task manually (and not through Power Query)

  1. Separated Exam Records by curriculum to as there are different Exams per semester in different curriculum
  2. Used a countifs to identify if particular exams were passed
  3. Created a Summary sheet with all relevant students
Sample Sheet

Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARAS
1ACCP-Semester 1ACCP-Semester 1ACCP-Semester 1ACCP-Semester 1ACCP-Semester 1ACCP-Semester 1ACCP-Semester 2ACCP-Semester 2ACCP-Semester 2ACCP-Semester 2ACCP-Semester 2ACCP-Semester 2ACCP-Semester 3ACCP-Semester 3ACCP-Semester 3ACCP-Semester 3ACCP-Semester 3ACCP-Semester 3ACCP-Semester 3ACCP-Semester 4ACCP-Semester 4ACCP-Semester 4ACCP-Semester 4ACCP-Semester 4ACCP-Semester 4ACCP-Semester 5ACCP-Semester 5ACCP-Semester 5ACCP-Semester 5ACCP-Semester 6ACCP-Semester 6ACCP-Semester 6ACCP-Semester 6ACCP-Semester 6
2SchoolEnrollment NoStudent NameCourse CodeAll Semester StatusSem.1 Statuse ProjectE1R1T1T2T3Sem.2 StatusE1PROJECTR1T1T2T3Sem.3 StatusE1PROJECTR1T1T2T3T4Sem.4 StatusE1PROJECTR1T1T2T3Sem.5 StatusE1T1T2T3Sem.6 StatusE1PROJECTR1T1T2
3South1111Daren2011TRUEok111111ok111111ok1111111ok111111ok1111ok11111
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,937
Members
449,094
Latest member
teemeren

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