Alteryx Designer Desktop Discussions

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

Exception Report

KmbrlyPC
8 - Asteroid

Hi! 

 

I have a list of student names and a list of weeks they are "present" in class. If I know all the student's names and I know there are 52 weeks in the year, how do I come up with a list of the exceptions? A list of the weeks that the students are absent in class? The weeks that are missing in the data are the weeks they are absent. Ultimately I want to combine the data so I have all student's names and all 52 weeks listed and a field that indicates "Present" or "Absent". Thanks for the help!

6 REPLIES 6
terry10
12 - Quasar

@KmbrlyPC 

 

See attached workflow. I used the Generate Rows tool for 52 WeekNumbers, appended to the list of student names, joined to your existing data, missing data was set as not Present. I wasn't sure what output you wanted, so I added am optional CrossTab.

 

Please mark this solution as accepted if it helped you. Thanks!

 

excpt report.PNG

 

 

 

 

KmbrlyPC
8 - Asteroid

Perfect, thank you!

KmbrlyPC
8 - Asteroid

I have a follow-up question to this regarding the Generate Rows tool. I am needing to add a date as a new column. I need this date to be any day within the corresponding week. It can be the first day in the week or last, doesn't matter. It should still result in 52 rows, 1 for each week. How would I create this additional column using the generate rows tool?

terry10
12 - Quasar

@KmbrlyPC 

 

You can use the Generate Tools row to create a sequence of date, then derive week number from that. See attached.

 

I chose 2023-01-01 so you would see a full year, but you can change the start date in the Text Input tool.

 

 

terry10
12 - Quasar

BTW, if you post questions like this under Designer, rather than General, you will get responses sooner.

KmbrlyPC
8 - Asteroid

Excellent, thank you again!

Labels