Jump to content
Server Maintenance This Week. ×

Top Ten lists


seraph_nyc

This topic is 6217 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Well lets say there is a category for favorite celebrity. And there are 1000 records. It will look at all the records and find the top ten responses. I think this is basically a duplicate finder which stores its searches and only selects the top ten. So I need to make this so it works in a portal rather than a separate self join.

Link to comment
Share on other sites

Create a self join keyed on QuestionID and Answer. Then create a calc field that is a Count (SelfJoin::Answer)

Then your portal can be sorted by this calc field in Descending order, Have the portal only have 10 rows.

Link to comment
Share on other sites

I dont understand what you are trying to accomplish here. Why are you trying to show the to 10 answers from an layout of individual answers?? I was under the impression that you had a questions table and a related answers table. Then I was assuming that you wanted to shot the top ten answers that were used for a particular question.

Also should this not be in a summary report instead or a portal

Link to comment
Share on other sites

Yes, I have ten questions, 1000 records. I want to know the top ten responses of each question. I only included one question in this version of the database to keep it simple. I got all the counts working, I just need a way of listing them in order. In fact, if I can use a portal I dont need to limit it to top ten.

Link to comment
Share on other sites

Well in your sample, you have 50 questions as per your Question serial number being 50 records.

Again I think this would be better served with a summary report. Why do you want this in a portal?

Link to comment
Share on other sites

Ok how would I do that in a summary report? I like the idea of portals since it can be update with portal filtering (which isn't part of the sample). I like multi joins. But if I need to do a summary then I will. is there a good resource for this?

Link to comment
Share on other sites

I have attached your file back with some modifications. Both methods have been included. Using a summary report is the preferred method because it is more "natural". The other way through a portal requires a global field to be set.

top_ten_revised.zip

Link to comment
Share on other sites

There is no record creating going on here. The self join is used to count all the responses. The TO of celebrity is used to display all the related celebrity names. The additional TO of answers is to show the calc that was used to count earlier.

My suggestion would be to read up on Table occurences, TOG, etc.

Also as I have said numerous times now, the more conventional way, and the way that I think you should go about it is to use a summary report since it seems more natural. Just my 2 cents.

Link to comment
Share on other sites

My sample file and your file looks vastly different. ;) As I suggested, it may be good for you to read up on table occurences. The white paper that is linked in my signature is a decent start.

Link to comment
Share on other sites

This topic is 6217 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.