Forum

Creating Categories...
 
Notifications
Clear all

Creating Categories Based on Order of Test Completion

3 Posts
2 Users
0 Reactions
109 Views
(@jaceriley)
Posts: 4
Active Member
Topic starter
 

Hi all!

 

I have what may be kind of a complex issue.

I’m currently working with a data set in power query and wondering whether there was any way (within either power query, if not perhaps with a DAX formula) to create a flag that will place students in one of three categories based on the order in which they completed a test. I would have to take into consideration the date as well as time (so if a student completed an array of tests on the same date, the time would determine into which category they fell)

I have attached a sample workbook with anonymized data as well as the desired result which will (hopefully) be a clearer reference.

Any suggestions would be greatly appreciated!

 
Posted : 06/09/2018 5:30 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Jace,

That's tricky. I created a lookup table for the class order mapping to groups called 'Groups'. Then I unpivoted the original data and merged the first two classes together so I could use them in a lookup to the Groups table.

You can see in the attached file.

Note: There may be a more elegant way to achieve this.

Hope that helps.

Mynda

 
Posted : 09/09/2018 1:49 am
(@jaceriley)
Posts: 4
Active Member
Topic starter
 

Mynda Treacy said
Hi Jace,

That's tricky. I created a lookup table for the class order mapping to groups called 'Groups'. Then I unpivoted the original data and merged the first two classes together so I could use them in a lookup to the Groups table.

You can see in the attached file.

Note: There may be a more elegant way to achieve this.

Hope that helps.

Mynda  

Actually this is doing exactly what I was looking for. Thank you Mynda!

 
Posted : 11/09/2018 10:52 am
Share: