October 2, 200718 yr Hello, I am wondering, how to "calculate" the following: main table with following fields: id article number article attributes calculated text Subtable with following fields id relation to main id article attributes number a main record can have 0 to 5 subrecords "article attributes number" contains numbers that should be calculated in "article attributes calculated text". The formula of "article attributes calculated text" should do the following: - Get all "article attributes number" (probably with the list command) - Sort them in ascending order - Write the sorted numbers with "-" between each Value i.e. 3 Subrecords with numbers 8976 629 17678 calculated as 629-8976-17678 Can anyone tell me, how the calculation would look like? GalainHH
October 2, 200718 yr Try: Substitute ( List ( Subtable::article attributes number ) ; ¶ ; "-" ) The sorting should be done in the relationship's definition, which the List() function will faithfully follow.
October 2, 200718 yr Author Thanks a lot. This is far from being "complicated". I was constantly thinking, that I have to use "Let" and calculate Vars in special way and didn´t thought, there can be such an easy way.
October 2, 200718 yr Using Let() does not necessarily complicate thing - on the contrary, I often use Let() to make a formula more readable, sometimes even at the expense of perfect efficiency, e.g. Let ( myList = List ( Subtable::article attributes number ) ; Substitute ( myList ; ¶ ; "-" ) )
Create an account or sign in to comment