March 4, 20187 yr I have created a summary field which shows a number - say $434,567. I want the field to return $435 eg thousands of dollars. Not really clear how to do this... many thanks for any help.
March 4, 20187 yr Hi enquirerfm, This will work for the data you presented. Left ( number ; Position ( amount ; "," ; 1 ; 1 ) - 1 ) or Right( Left( Round( amount ; 0 ); Length( Round( amount ; 0 )) - 3 ); 3) Try this Calculation, it was provide by comment. It's very versatile, all you have to do is change "n = 1" (n = 2 or n = 3 etc. ) to extract a different part. Let ( [ YourField = amount ; n = 1 ; t = "," & YourField & "," ; start = Position ( t ; "," ; 1 ; n ) + 1 ; end = Position ( t ; "," ; 1 ; n + 1 ) ] ; Middle ( t ; start ; end - start ) ) HTH Lee
March 4, 20187 yr With the reasonable assumption that the Summary field is a number field (with the comma inserted by the Inspector for display), you could use Int(YourSummaryField/1000) Lee's answers are all based on the field being a text field with the comma being actually part of the data, which I would not expect in a Summary field.
Create an account or sign in to comment