how to sum highest 5 values in access crosstab query

zachariack

New member
Local time
Today, 16:42
Joined
Jan 18, 2024
Messages
1
Sl NoNameSubjectExam 1Exam 2Exam 3Exam 4Exam 5Exam 6Exam 7Exam 8Exam 9Exam 10TotalSum of Highest 5
1AAAAEnglish
89​
88​
87​
86​
85​
98​
82​
96​
95​
90​
896​
????
2BBBBEnglish
95​
68​
9​
96​
32​
94​
63​
56​
56​
65​
634​
????
2CCCCMaths
95​
68​
9​
96​
32​
94​
63​
56​
56​
65​
634​
????
 
INSIDE the crosstab query not at all. Such an operation is not provided for in a KTA, and SQL works row-oriented, not column-oriented.
However, you can determine the desired sum in another query and then link this query to the KTA.
 
you need to create a Top 5 Query first(1_Top5BySINo on demo and 2_SumTop5Score an append query), then append it to a temporary table.
next, you create a Crosstab from your table joining the temporary table.
 

Attachments

KTA = crosstab query (Kreuztabellenabfrage)
 
Yes, my error..
I wasn't thinking clearly because I also want someone to copy data from an image into a usable Access table.
 
No problem! It's interesting to learn the terminology in another language! (y)
 

Users who are viewing this thread

Back
Top Bottom