AnjaNi Posted December 29, 2008 Posted December 29, 2008 First, being a newbie, I apologize in advance if this there is a self-evident solution to the following issue...: I have a database containing information about archaeological artifacts, with the following fields (simplified) Site, Artifact_category, Artifact_material, Number (of artifacts). Artifact_category and Artifact_material are drop-down lists from predefined value lists. From this I would like to make a layout where, when sorted by Site, each Artifact_category is summarized by Artifact_material (from which each value should be the header row). It should look something like this: Any suggestions will be highly appreciated! Anja
Søren Dyhr Posted December 29, 2008 Posted December 29, 2008 This is a two step journey, first do you need to grasp the gist of this: ...then when you get the hang of it, should this approach give you what you're after: http://edoshin.skeletonkey.com/2006/12/crosstab_report.html What isn't so obvious is that you would need to make a calc using the position in a value-list to perform the horizontal ushering: ValueCount ( Left ( theList ; Position ( ¶ & theList & ¶; ¶ & value & ¶ ; 1 ; 1 ) ) ) ...snipped boldly from this CF: http://www.briandunning.com/cf/859 --sd
AnjaNi Posted December 29, 2008 Author Posted December 29, 2008 Thank you for the reply! So far, the 1.5 first steps are good. I am stuck at the repeating caculation. I am sorry, I just don't understand where this calc is supposed to go? What isn't so obvious is that you would need to make a calc using the position in a value-list to perform the horizontal ushering: ValueCount ( Left ( theList ; Position ( ¶ & theList & ¶; ¶ & value & ¶ ; 1 ; 1 ) ) ) ...snipped boldly from this CF: http://www.briandunning.com/cf/859 --sd
Søren Dyhr Posted December 29, 2008 Posted December 29, 2008 The seating aspect of this: http://en.wikipedia.org/wiki/Church_usher Horizontally would you have a valuelist like this: chert flint jaspis quartzise quartz rhyyolite rock crystral bergkrystal slate ...wouldn't you? Which doesn't have any scalar values inhibited like the dates Edoshins method uses, until you make the listing into the actual order. The calc then returns a integer for which repeating field it should be summarized in by comparing the category with the position in the valuelist. This could be transformed into this: Case( Get( CalculationRepetitionNumber ) = ValueCount( Left( ValueListItems( Get( FileName ); "MadeOf" ); Position( ¶ & ValueListItems( Get( FileName ); "MadeOf" ) & ¶; ¶ & Extend(material) & ¶; 1; 1 ) ) ); 1 ) And we're ready to summarize (count is enough here) .... but Usually are such statements compacted via Let( statements to make it evolve faster! --sd
Recommended Posts
This topic is 5808 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