added the function to merge data from diffrent resources by same values of other dimensions