Link from Solid to Design Table

Hello people,

I am trying to create formula in my design table, where i want it to make a certain amount of holes in my part, depending on the total length of my part. But i can't seem to find how I link my total length from my part to the design table without having to manually change it. 

Is there a way to link these to values together?

-Jamie

SolidworksGeneral