I have location information in the format of decimal latitude and longditude in my data. I want to create a pivot with distances between stores and users. I have the formula that works in Excel, but it won't work in powerpivot as RADIANS and maybe other Trig functions aren't recognised.
Is there anyway round this please?
Mike
Code:
0.621371*(RadiusEarth*((2*ASIN(SQRT((SIN((RADIANS(D71)-RADIANS(D72))/2)^2)+COS(RADIANS(D71))*COS(RADIANS(D72))*(SIN((RADIANS(E71)-RADIANS(E72))/2)^2))))))
Mike