Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data question on calculating percentages



Hi,

I have been trying to find a way to have an attribute in an Entity that will
show me a percentage value. Example: you have an Entity "Expenses" that has
attributes for "Expense Name", "Expense Amount", and "Percentage of total"
Expenses". Where "Percentage of total" gives you the percentage the "Expense
amount is of the total expenses. Is there an easy or not so easy way to do
this. Have tried the @sum operator, fetch requests, etc. Seems like there
should be a simple solution. Have searched the mail list but could not find
anything. Any suggestions would be appreciated.

Scott.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.