Plaicel™ is live on Microsoft AppSource - the only IBM Planning Analytics add-in that runs in Excel Web and works on Windows, Mac, and iPad.

Planning Analytics Distance Calculation

Straight-Line Distance Calculation...
globe clear bottles and rock on white surface

Straight-Line Distance Calculation

Straight-line distance otherwise known as how the crow flies is the simplest way of measuring distance between two destinations. However, this distance can be calculated using different formulas based on a variety of assumptions.

Pythagorean Theorem:
Distance = SQRT((X2 – X1)^2 + (Y2 – Y1)^2)
Where X1, Y1 and X2, Y2 are the Cartesian coordinates of your destinations.

You can only use this equation when your coordinates are projected geographical coordinates and the distance between the two destinations is less than 12 miles (20 kilometers).

IBM Planning Analytics Zip Distance Calculator
IBM Planning Analytics Map

  1. Below are the steps to create a zip to zip calculator in IBM Planning Analytics.

Step 1: Create 2 dimensions in Planning Analytics (From Zip and To Zip)

Step 2: Create latitude and longitude numeric attributes on both dimensions.

Step 3: Populate the US zip code elements in both dimensions

Step 4: Populate the latitude and longitude attributes on both dimensions.

Step 5:  Create a Measure dimension for your cube and call it “Distance Measure”

Step 6:  Create a cube called Distance

Step 7: Create a cube business rule on the Distance cube

Step 8:  Add the following rules to the cube and save the rule

  • [‘Miles’] = N: SQRT((69*(ATTRN(‘FromZip’,!FromZip,’Latitude’) – ATTRN(‘ToZip’,!ToZip,’Latitude’)))^2 + (53*(ATTRN(‘FromZip’,!FromZip,’Longitude’)-ATTRN(‘ToZip’,!ToZip,’Longitude’)))^2);
  • [‘Kilometers’] = N: [‘Miles’] * 1.60934;

Related Articles

Rick Stevenson

IBM Planning Analytics Excel Add-In: Plaicel™ vs IBM PAfe

If your finance team runs on Excel — and let’s be honest, most do — then connecting Excel to IBM Planning Analytics is the single most impactful thing you can do for your planning process.

But which Excel add-in should you use? IBM offers its own solution (PAfe — Planning Analytics for Excel), and ForQuest Solutions has built Plaicel™, a web-based alternative designed to solve the problems PAfe wasn’t built to handle.
This post breaks down the real differences so you can make an informed decision.

Read More »

Connect Excel to IBM Planning Analytics - Free for 30 Days

No installation. No migration. No retraining. Your team keeps working in Excel while Plaicel™ syncs live to TM1.

Then 50% off your first year. From $24.99/user/mo*

*billed annually

Free for 30 days · No credit card required