The catalogue is the model
Every job profile in the group is one block of rows: one row per competency, each with the target level it demands. The level arrives as text, “4 – Expert”, and the script reads the number off the front of the string. The comparison needs nothing else about a profile, which is exactly why it held up under scrutiny.