Can you set up a PDM variable to be unique with exceptions?

I have a variable (PartNo) with the "Unique values" checkbox checked but would like this to be unique for only certain file types so that our PDFs/STEP files that are generated in the workflow reference the original file's PartNo. Is this possible?

-Mark

SolidworksSolidworks Pdm enterprise Pdm