Creating Categories Based on Order of Test Completion

GiacTorrence

New Member
Joined
Dec 2, 2014
Messages
40
Hi all!



I have what may be kind of a complex issue.

I’m currently working with a data set and wondering whether there was a DAX formula that will create a flag that will place students in one of six categories based on the order in which they completed a test.

Essentially I would like to have 6 primary groupings that will occur most frequently in the data (Group 1 – Completed V, then Q, then NV; Group 2 – Completed V, then NV then Q; Group 3 – Completed Q, then V then NV; Group 4 – Completed Q, then NV then V; Group 5 – Completed NV, then V then Q; and Group 6 – Completed NV, then Q then V).

The order of test completion is based on which date/time they took one of the three tests.

If someone completed only two tests (for example completed V, then NV, they would fall into group 2, as we know that the only next possible test they will take is going to be Q. The same follows for the other 5 possible groupings).

If they only completed one test, I would like to identify them as having "Only completed X".

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

Working set:
https://i.stack.imgur.com/Z49Yg.png

Desired Result:
https://i.stack.imgur.com/xStN2.png

Any suggestions would be greatly appreciated.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Cross posted https://stackoverflow.com/questions...-categories-based-on-order-of-test-completion

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,190
Members
452,616
Latest member
intern444

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