With a csv file you could have your expression get the data index from the comp name, which would be pretty simple if your comps were named like “Comp 1”, “Comp 2”, etc.
Then, assuming your imported data file (named data.csv for this example) looks like this:
Names
Mike Jones
Rob Smith
Cindy Anderson
you get the appropriate name like this:
idx = parseInt(thisComp.name.split(" ")[1],10) - 1;
footage(data.csv").dataValue([0,idx]) // result = Rob Smith for Comp 2