How can I resolve the error 'Variable not set '?

How can I resolve the error 'Variable not set '?

One of the many causes for such problem is, if the base measure column is not defined in the aggregate table (for e.g. Gregorian aggregate table ). Define the base measure to solve the issue.