Forum Discussion
Magpie_Rob
Helper I
5 years agoDistance Bins based on long and lat
Hello So I have 2 tables, on with customers and there Longitude and Latitude and anotherone with Stores with there longitude and latitude - I'm trying to create a table with a list of the stores ...
- 5 years ago
- 5 years ago
This was the main bit! it worked really well thank you!
Store Distance Bins = ADDCOLUMNS ( CROSSJOIN ( VALUES ( Store_Location[Postcode] ), VALUES ( 'Customers Locations'[id] ) ), "Miles", [Miles], )
parry2k
Super User
5 years agoMagpie_Rob
Helper I
5 years agoThis was the main bit! it worked really well thank you!
Store Distance Bins =
ADDCOLUMNS (
CROSSJOIN (
VALUES ( Store_Location[Postcode] ),
VALUES ( 'Customers Locations'[id] )
),
"Miles", [Miles],
)