【发布时间】:2021-12-06 20:46:32
【问题描述】:
我目前正在使用 powerpivot,并添加了一个列来为所有行创建一个计算字段。该函数的目的是通过获取两个邮政编码的纬度和经度来找到它们之间的距离;此功能始终在 excel 工作表中有效,但是当我尝试在电源查询中使用相同的功能时,它不起作用。我之所以对这个函数使用 power query 是因为数据集超过 4,000,000 行...
我正在使用下面的函数,它返回为“#ERROR”
=ACOS(COS(RADIANS(90-'Origin vs Destination w PKG'[Latitude]))*COS(RADIANS(90-'Origin vs Destination w PKG'[DLatitude]))+SIN(RADIANS(90-'Origin vs Destination w PKG'[Latitude]))*SIN(RADIANS(90-'Origin vs Destination w PKG'[DLatitude]))*COS(RADIANS('Origin vs Destination w PKG'[Longitude]-'Origin vs Destination w PKG'[DLongitude])))*3958.8
上面是函数。有谁知道如何让两个坐标之间的距离函数在 PowerPivot 中工作?
非常感谢
【问题讨论】:
标签: excel excel-formula powerquery spreadsheet powerpivot