MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




DivideByField doesn't work property with 0 value

This is a discussion on DivideByField doesn't work property with 0 value within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; If I do a datamapping with my personal data and I choose to divide a field by another one (in ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-27-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
DivideByField doesn't work property with 0 value

If I do a datamapping with my personal data and I choose to divide a field by another one (in one record this field is 0), the record with the DivideByField value equal to 0 isn' considered.
Let me show you an example

Amount2003 Amount2002
100 2
300 4
500 0

I want to calculate the Total amount of 2003 divided by Total Amount of 2002 per Region (in this case, I suppose I have only one region)

I choose for the datamapping:
field = Amount2003
DivideByField = Amount2002
Operation: sum

The result is (100+300)/(2+4) instead of (100+300+500)/(2+4+0)

Why?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-28-2004
Member
Yellow Belt
 
Join Date: Feb 2003
Posts: 48
Its the old "What shall I do with infinity?" problem.
Try doing all the calculations external from MP (in XL for example), then you can replace all errors with meaningful values e.g. #DIV/0! --> 0 before import.
You may need to import a couple of datasets (a summary and a detail)

HTH

M.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 02-02-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I think it's correct that MapPoint will return infinite from Value/0, but it's non correct that performs single operations (Value1/0, Value2/3) etc.
It could only check if the sum of values (0 + 3 +4) is different from 0!

In my previous example

The result is (100+300+500)/(2+4+0), Mappoint could check if (2 + 4+ 0) is different from 0, why it checks 500/0 and then delete that information??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
dividebyfield, property, work


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Highlight property Yazzy MapPoint 2006/2009 Discussion 1 03-08-2005 03:38 PM
Property MatchingMethod results (VBA) Anonymous MapPoint 2006/2009 Discussion 0 11-05-2004 11:47 AM
Mappoint - TopScore property Anonymous MapPoint 2006/2009 Discussion 4 03-26-2004 10:41 AM
Where are the saved property in mappoint Anonymous MapPoint 2006/2009 Discussion 1 05-15-2003 07:33 AM
Altitude property Labtek MapPoint 2006/2009 Discussion 2 05-02-2003 10:28 PM


All times are GMT -5. The time now is 11:09 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55