Bill_misc_IT Posted February 26, 2013 Posted February 26, 2013 I have an FMP solution for tracking productivity in a manufacturing environment. I gather quantity of parts produced, as well as quantity of parts expected (over time) in a database. I have several reports that summarize the data based on employee, job ID, etc. One of the reports includes the below calculation field to calculate performance as a percentage. Truncate( (GetSummary ( summary of actual parts ; _kf_operation_no )/GetSummary ( summary of expected parts ; _kf_operation_no ))*100;2) I would like to sort the report in descending order, based on this field, but cannot. Any ideas? Thanks, Bill
Mr. Scott Posted March 1, 2013 Posted March 1, 2013 Hi, Bill: I assume the GetSummary calc is displaying the correct value, and that the question is only about how to sort by actual part produced by the summary count field "summary of actual parts"? If so, you may not only find it simpler, but it may also sort results faster (like NASCAR fast vs. a tortoise!) if you just sort by the numerator summary field: On another note, you may also find it easier to use a Let statement, like the one below for calculating the percentage values: Let ( [ actual = GetSummary ( summary of actual parts ; kf_operation_no ) ; expected = GetSummary ( summary of expected parts ; kf_operation_no ) ]; Round ( ( actual/expected ); 5 ) //or, maybe even Truncate ( ( actual/expected ); 2 ) ) You'll need to format the field in Layout mode using the Inspector and set it for percentage, along with the precision you desire to be displayed. You may also want to consider that field and table names that begin with underscores "_" will cause you problems if you every try to use SQL in your solution (I removed them from the "kf_operation_no" fields in the example above). I'd love to hear back on how this works out for you, so please post a reply! Best regards, - - Scott
Mr. Scott Posted March 22, 2013 Posted March 22, 2013 Hey, Mr. Bill… Did you ever return to read responses to your original posted question? If so, could you let us know how things worked out for you? Best regards, - - Scott
Recommended Posts
This topic is 4610 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now