Check data reference first before checking data set or cube.