SOLVED

Multiple Results From Same Data That Changes Daily

%3CLINGO-SUB%20id%3D%22lingo-sub-2362386%22%20slang%3D%22en-US%22%3EMultiple%20Results%20From%20Same%20Data%20That%20Changes%20Daily%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2362386%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20data%20set%20is%20large.%26nbsp%3B%20Approximately%2055%2C000%20Rows%20and%208%20Columns.%26nbsp%3B%20I%20have%20truncated%20the%20report%20for%20the%20sake%20of%20the%20attachment%20and%20removed%2Freplaced%20sensitive%20information.%26nbsp%3B%26nbsp%3BDefinitions%20of%20data%20in%20the%20attached%20report%20is%20listed%20at%20the%20bottom%20of%20this%20post.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20identify%20separate%20groups%20of%20StuNums%20(Students)%20that%20meet%20varying%20conditional%20criteria%20so%20that%20I%20can%20make%20sure%20to%20send%20appropriate%20messaging%20to%20each%20group%20of%20students.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStudent%20Groups%20Criteria%3A%3C%2FP%3E%3COL%3E%3CLI%3EIf%20a%20student%20is%20scheduled%20for%20only%201%20CourseCode%20in%20any%20TermCode%2C%20(could%20be%20multiple%20TermCodes)%2C%20and%20has%20a%20LetterGrade%20of%20W%2C%20WP%2C%20or%20WF%20for%20that%201%20Course%20Code%20and%20TermCode.%3C%2FLI%3E%3CLI%3EIf%20a%20student%20is%20scheduled%20for%20multiple%20CourseCodes%20in%20any%20TermCode%2C%20(could%20be%20multiple%20TermCodes%20and%20has%20a%20LetterGrade%20of%20W%2C%20WP%2C%20or%20WF%20for%201%20or%20more%20CourseCodes%20but%20is%20still%20scheduled%20for%201%20or%20more%20other%20CourseCodes.%3C%2FLI%3E%3C%2FOL%3E%3CP%3EI%20have%20tried%20keeping%20it%20simple%20with%20a%20Pivot%20Table%2C%20and%20Slicers.%26nbsp%3B%20Then%20have%20gone%20so%20far%20as%20to%20use%20PowerPivot%20and%20PowerQuery.%26nbsp%3B%20I%20am%20convinced%20that%20this%20is%20not%20as%20complicated%20as%20I%20have%20made%20it%20to%20be%20at%20this%20point.%26nbsp%3B%20Hoping%20a%20fresh%20set%20of%20eyes%20can%20help.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDefinitions%20of%20data%20in%20attached%20report.%3C%2FP%3E%3COL%3E%3CLI%3E%3CSTRONG%3EColumn%20A%3A%26nbsp%3B%20Course%20Code.%3C%2FSTRONG%3E%26nbsp%3B%20The%20code%20of%20the%20course%20that%20the%20student%20is%20scheduled%20to%20take.%26nbsp%3B%26nbsp%3B%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EColumn%20B%3A%26nbsp%3B%20EnrollStatus.%3C%2FSTRONG%3E%26nbsp%3B%20The%20student%E2%80%99s%20status%20for%20that%20specific%20Course%20Code.%26nbsp%3B%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EColumn%20C%3A%26nbsp%3B%20Letter%20Grade.%3C%2FSTRONG%3E%26nbsp%3B%20The%20students%20letter%20grade%20they%20earned%20in%20that%20specific%20course.%26nbsp%3B%20However%2C%20blank%20cells%20mean%20the%20student%20is%20still%20in%20the%20course%2C%20so%20grades%20have%20not%20yet%20posted.%26nbsp%3B%20A%20letter%20grade%20of%20W%2C%20WF%2C%20or%20WP%20means%20they%20withdrew%20from%20that%20course.%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EColumn%20%3CLI-EMOJI%20id%3D%22lia_anguished-face%22%20title%3D%22%3Aanguished_face%3A%22%3E%3C%2FLI-EMOJI%3E%26nbsp%3B%20StatusDescrip.%3C%2FSTRONG%3E%26nbsp%3B%20The%20student%E2%80%99s%20status%20in%20school.%26nbsp%3B%20Active%20means%20they%20are%20in%20school%20taking%20classes%26nbsp%3B%20Enrolled%20Ready%20To%20Access%20means%20they%20about%20to%20start%20school%20or%20are%20in%20their%20first%20month.%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EColumn%20E%3A%26nbsp%3B%20StuNum%3C%2FSTRONG%3E.%26nbsp%3B%20This%20is%20the%20unique%20ID%23%20of%20each%20student.%26nbsp%3B%20I%20replaced%20real%20ID%23's%20with%20generic%20ones%20for%20the%20sake%20of%20the%20attachment.%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EColumn%20F%3A%26nbsp%3B%20TermCode.%3C%2FSTRONG%3E%26nbsp%3B%20This%20is%20the%20alphanumeric%20code%20that%20indicates%20what%20month%20of%20school%20the%20specific%20student%20is%20taking%20the%20specific%20course%20on%20that%20row.%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EColumn%20G%3A%26nbsp%3B%20Creditsattempt.%3C%2FSTRONG%3E%26nbsp%3B%20The%20credit%20value%20of%20the%20specific%20course%26nbsp%3Bthe%20specific%20student%20is%20taking%20in%20the%20specific%20TermCode%20on%20that%20row.%3C%2FLI%3E%3CLI%3E%3CSTRONG%3EColumn%20H%3A%26nbsp%3B%20CreditsEarned.%3C%2FSTRONG%3E%26nbsp%3B%20The%20credits%20earned%20by%20the%20specific%20student%20in%20the%20specific%20course%26nbsp%3Bin%20the%20specific%20TermCode%20on%20that%20row.%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2362386%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2364956%22%20slang%3D%22en-US%22%3ERe%3A%20Multiple%20Results%20From%20Same%20Data%20That%20Changes%20Daily%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2364956%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F374528%22%20target%3D%22_blank%22%3E%40BradHedinger%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGiven%20all%20that%20you've%20tried%20already%2C%20you%20clearly%20are%20something%20of%20an%20Excel%20power%20user.%20On%20that%20basis%2C%20I'm%20going%20to%20assume%20that%20just%20pointing%20you%20in%20another%20direction--one%20you%20didn't%20mention--might%20suffice%2C%20and%20give%20you%20the%20opportunity%20to%20say%20%22I%20did%20it%20myself.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20don't%20mention%20the%20newest%20Dynamic%20Array%20functions--%3CSTRONG%3EUNIQUE%2C%20FILTER%2C%20SORT%3C%2FSTRONG%3E--so%20(assuming%20you%20have%20the%20most%20recent%20release%20of%20Excel)%2C%20let%20me%20introduce%20you%20to%20them%20by%20means%20of%20the%20attached%20video%2C%20which%20happens%20to%20be%20how%20I%20became%20acquainted%20with%20them%20late%20last%20year.%20I%20don't%20know%20for%20sure%20that%20they'll%20serve%20your%20need%2C%20but%20I%20think%20they%20will%2C%20and%20your%20more%20intimate%20knowledge%20with%20those%20criteria%20will%20serve%20you%20in%20good%20stead%20in%20forming%20the%20criteria%20section%20of%20%3CSTRONG%3EFILTER%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20the%20video%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9I9DtFOVPIg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9I9DtFOVPIg%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20here's%20another%20resource%20with%20examples%20and%20further%20references%20on%20constructing%20the%20criteria%20using%20boolean%20expressions%3A%20%3CA%20href%3D%22https%3A%2F%2Fexceljet.net%2Fexcel-functions%2Fexcel-filter-function%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fexceljet.net%2Fexcel-functions%2Fexcel-filter-function%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2374589%22%20slang%3D%22en-US%22%3ERe%3A%20Multiple%20Results%20From%20Same%20Data%20That%20Changes%20Daily%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2374589%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F374528%22%20target%3D%22_blank%22%3E%40BradHedinger%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20do%20a%20power%20query%20of%20the%20students%20with%20the%20common%20denominator%20which%20would%20be%20the%20letter%20grade%20W%2C%20WF%2C%20WP.%3C%2FP%3E%3CP%3Eonce%20you%20have%20the%20Narrowed%20down%20list%2C%20you%20create%20a%20duplicate%20of%20the%20query%2C%20one%20for%20Group%201%2C%20and%20one%20for%20Group%202%20by%20creating%20tables%20for%3A%3C%2FP%3E%3CP%3EUnique%20Student%20Names%20(primary%20key%3DStuNum)%3C%2FP%3E%3CP%3EUnique%20Course%20Code%20-%20Create%20a%20Primary%20Key%26nbsp%3B%3C%2FP%3E%3CP%3EUnique%20Term%20Codes%26nbsp%3B-%20Create%20a%20Primary%20Key%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20Unique%20Letter%20Grades%20-%20Create%20a%20Primary%20Key%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20Transaction%20Table%20(the%20big%20list%2C%20should%20have%20the%20StuNum%20already%2C%20associate%20the%20primary%20keys%20to%20the%20other%20tables%20with%20the%20big%20list%20so%20the%20big%20list%20should%20have%20StuNum%2C%20and%20the%20primary%20keys%20to%20the%20other%20tables%20i.e.%20Letter%20Grade%2C%20Course%20Code%2C%20and%20Temr%20Codes.%3C%2FP%3E%3CP%3EThese%20keys%20are%20what%20you're%20going%20to%20use%20to%20create%20the%20table%20relationships%3C%2FP%3E%3CP%3Eyou%20put%20all%20your%20queried%20table%20in%20the%20data%20model%3C%2FP%3E%3CP%3Ethen%20create%20relationships%20using%20the%20Primary%20keys%20to%20all%20tables%3C%2FP%3E%3CP%3Ethen%20create%20your%20power%20pivot%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2376525%22%20slang%3D%22en-US%22%3ERe%3A%20Multiple%20Results%20From%20Same%20Data%20That%20Changes%20Daily%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2376525%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20can%20they%20have%20a%20grade%20if%20they're%20only%20scheduled%20and%20not%20active%2C%20so%20you're%20really%20looking%20at%20comparing%20two%20lists%2C%20List%231%20is%20who%20is%20actively%20enrolled%20with%20letter%20grades%20of%20W%2C%20WF%20and%20WP%20that%20have%20not%20scheduled%20to%20re-enroll%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2376794%22%20slang%3D%22en-US%22%3ERe%3A%20Multiple%20Results%20From%20Same%20Data%20That%20Changes%20Daily%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2376794%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1047584%22%20target%3D%22_blank%22%3E%40Yea_So%3C%2FA%3E%26nbsp%3BGreat%20question!%26nbsp%3B%20This%20is%20because%20at%20any%20time%2C%20there%20are%20students%20whose%20schedules%20are%20being%20edited%2Fchanged%20for%20a%20variety%20of%20reasons.%26nbsp%3B%20Also%2C%20some%20courses%20grades%20post%20before%2Fafter%20others.%26nbsp%3B%20So%20many%20moving%20pieces.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

 

My data set is large.  Approximately 55,000 Rows and 8 Columns.  I have truncated the report for the sake of the attachment and removed/replaced sensitive information.  Definitions of data in the attached report is listed at the bottom of this post.

 

I want to identify separate groups of StuNums (Students) that meet varying conditional criteria so that I can make sure to send appropriate messaging to each group of students. 

 

Student Groups Criteria:

  1. If a student is scheduled for only 1 CourseCode in any TermCode, (could be multiple TermCodes), and has a LetterGrade of W, WP, or WF for that 1 Course Code and TermCode.
  2. If a student is scheduled for multiple CourseCodes in any TermCode, (could be multiple TermCodes and has a LetterGrade of W, WP, or WF for 1 or more CourseCodes but is still scheduled for 1 or more other CourseCodes.

I have tried keeping it simple with a Pivot Table, and Slicers.  Then have gone so far as to use PowerPivot and PowerQuery.  I am convinced that this is not as complicated as I have made it to be at this point.  Hoping a fresh set of eyes can help. 

 

Definitions of data in attached report.

  1. Column A:  Course Code.  The code of the course that the student is scheduled to take.  
  2. Column B:  EnrollStatus.  The student’s status for that specific Course Code. 
  3. Column C:  Letter Grade.  The students letter grade they earned in that specific course.  However, blank cells mean the student is still in the course, so grades have not yet posted.  A letter grade of W, WF, or WP means they withdrew from that course.
  4. Column   StatusDescrip.  The student’s status in school.  Active means they are in school taking classes  Enrolled Ready To Access means they about to start school or are in their first month.
  5. Column E:  StuNum.  This is the unique ID# of each student.  I replaced real ID#'s with generic ones for the sake of the attachment.
  6. Column F:  TermCode.  This is the alphanumeric code that indicates what month of school the specific student is taking the specific course on that row.
  7. Column G:  Creditsattempt.  The credit value of the specific course the specific student is taking in the specific TermCode on that row.
  8. Column H:  CreditsEarned.  The credits earned by the specific student in the specific course in the specific TermCode on that row.
4 Replies
best response confirmed by allyreckerman (Microsoft)
Solution

@BradHedinger 

 

Given all that you've tried already, you clearly are something of an Excel power user. On that basis, I'm going to assume that just pointing you in another direction--one you didn't mention--might suffice, and give you the opportunity to say "I did it myself."

 

You don't mention the newest Dynamic Array functions--UNIQUE, FILTER, SORT--so (assuming you have the most recent release of Excel), let me introduce you to them by means of the attached video, which happens to be how I became acquainted with them late last year. I don't know for sure that they'll serve your need, but I think they will, and your more intimate knowledge with those criteria will serve you in good stead in forming the criteria section of FILTER.

 

Here's the video: https://www.youtube.com/watch?v=9I9DtFOVPIg

 

And here's another resource with examples and further references on constructing the criteria using boolean expressions: https://exceljet.net/excel-functions/excel-filter-function

 

Learn everything about our brand-new Dynamic Arrays and how you can use them to build advanced spreadsheets. Arrays (CSE) have long been present in Excel, bu...
Thankyou very much! Incredibly eye-opening. Hopefully the solution lies within!

How can they have a grade if they're only scheduled and not active, so you're really looking at comparing two lists, List#1 is who is actively enrolled with letter grades of W, WF and WP that have not scheduled to re-enroll

@Yea_So Great question!  This is because at any time, there are students whose schedules are being edited/changed for a variety of reasons.  Also, some courses grades post before/after others.  So many moving pieces.