Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Report by Course

Grail030510
Asteroide

Good Day everyone,

 

I would like to ask for your help or way how to implement this on alteryx workflow, First Image shows a table of the current status of students regarding each specific subject and their status such as Completed, Ongoing or Not Started.

STUD_IDSubjectStatusCourse
101Math1CompletedCS
101ScienceCompletedCS
101EnglishCompletedCS
101ReadingCompletedCS
101SocialCompletedCS
101ChemistryCompletedCS
102ScienceOnGoingIT
102Math1CompletedIT
102EnglishCompletedIT
103ReadingCompletedNURSING
103SocialOnGoingNURSING
103Math1OnGoingNURSING
104ReadingCompletedTeacher
104AlgebraCompletedTeacher
104CultureCompletedTeacher
104ReligionCompletedTeacher

 

Now The Other Table shows what are the subjects that they need to take in order for them to finish their course.

 

CourseSubject
CSMath1
CSScience
CSEnglish
CSReading
CSSocial
CSChemistry
CSC Prog
CS.net
ITScience
ITMath1
ITEnglish
ITJava
ITPE
ITReading
ITSocial
ITReligion
ITDBMS
ITAI
NURSINGReading
NURSINGSocial
NURSINGMath1
NURSINGChemistry
NURSINGBiology
NURSINGNeurons
NURSINGDental
NURSINGSystem
TEACHERReading
TEACHERAlgebra
TEACHERCulture
TEACHERReligion
TEACHERPE
TEACHERMath1
TEACHERScience
TEACHERSocial

 

How can I create a logic workflow that would make an output that would look like this, such as all the subjects that are not yet taken will be tag as "NOT STARTED"

 

STUD_IDSubjectStatusCourse
101Math1CompletedCS
101ScienceCompletedCS
101EnglishCompletedCS
101ReadingCompletedCS
101SocialCompletedCS
101ChemistryCompletedCS
101C ProgNOT STARTEDCS
101.netNOT STARTEDCS
102ScienceOnGoingIT
102Math1CompletedIT
102EnglishCompletedIT
102JavaNOT STARTEDIT
102PENOT STARTEDIT
102ReadingNOT STARTEDIT
102SocialNOT STARTEDIT
102ReligionNOT STARTEDIT
102DBMSNOT STARTEDIT
102AINOT STARTEDIT
103ReadingCompletedNURSING
103SocialOnGoingNURSING
103Math1OnGoingNURSING
103ChemistryNOT STARTEDNURSING
103BiologyNOT STARTEDNURSING
103NeuronsNOT STARTEDNURSING
103DentalNOT STARTEDNURSING
103SystemNOT STARTEDNURSING
104ReadingCompletedTeacher
104AlgebraCompletedTeacher
104CultureCompletedTeacher
104ReligionCompletedTeacher
104PENOT STARTEDTeacher
104Math1NOT STARTEDTeacher
104ScienceNOT STARTEDTeacher
104SocialNOT STARTEDTeacher

 

 

Thank you so Much In advance

 

 

 

 

 

1 RESPUESTA 1
DataNath
Cástor

Hey @Grail030510, here's an approach you could use. To roughly outline the steps I've used:

1) Make the [Course] Uppercase to match table 2 (so we can conduct a Join)

2) Summarize to Group by [STUD_ID] and [Course] to get a distinct list

3) Conduct a Join to give us which subjects each [STUD_ID]+[Course] combo actually needs

4) Conduct a second Join to see which of these already exist i.e. have been completed

5) Those that fall out of this Join don't exist i.e. are 'NOT STARTED' so we therefore assign this label in a Formula expression

6) Use a Union to stack this data back together, the completed and not started records

7) Sort tool to tidy the order up

 

Hope this helps!

 

888.png

Etiquetas