You should be able to achieve what you are after with straight calculated fields, although a specific example posted in a packaged workbook would help a lot.
Assuming your calculated field for unique names per state (let's call it NamesPerState) looks something like this (which will work for single states as well as aggregating across states):
COUNTD([Name]) / COUNTD([State])
and you have another measure like Revenue, you would calculate Revenue per unique name like this:
SUM([Revenue]) / [NamesPerState]
Note that any calculated field that uses NamesPerState has to use aggregate functions (like SUM, AVG, etc), because you cannot mix aggregate and non-aggregate values in a single calculated field.
Hope this helps. If you post a packaged workbook with sample data & a specific use case, we'll better be able to serve in the future.
Thanks for your assistance. Much appreciated.