Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

First of all I apologise because I think I’ve seen something similar in the forum but I can’t find it.

I have two tables

Subjects

Exam questions

In subjects table I set the number of lessons, i.e. 8.

In the exam questions table I have a lesson field were to put its number, say 1, 5, 6 and 8.

I have a graphic that shows how many times a lesson have been asked, that works ok.

What I’d like to accomplish is to also know what lessons haven’t been asked.

In the given example would be 2 to 4 and 7.

Thanks to all.

Posted

I've made a sample file. I hope it helps.

I can make a graph to see the lessons asked, but what I also want is to see (not in the graph, of course), the missing lessons.

In the sample file (2 to 4 and 7).

Thanks comment. Always you. :super: :thumbsup:

CountingLessons.zip

Posted

I don't think I need one.

I know a subject can have many lessons, and a lesson can be in many subjects (so join table) but, lesson will be just a number, so... I don't know.

Posted

a lesson can be in many subjects

I think not - unless I have misunderstood completely. The question is, do you have anything to say about a lesson as such - for example:

History:

• Lesson 1: Stone Age

• Lesson 2: Egypt

• Lesson 3: Greece

• Lesson 4: Rome

...

Posted

I'm sorry comment but I don't get what you are trying to say.

I know the db could be very simple as it is and you think in future problems but I can't see it.

How I work with it:

Once subjects have been created I get the exams and populate each subject/question/lesson in the exams table.

Through a script I make a search by suject in exams layout (sorted by lesson/question) and then save it to pdf.

I know it is simple but it's the only way I can do it by the moment.

If you see my idea is going to crash any time while implementing the db, you know your help is very much apreciated.

I made some changes in the sample file so now is nearly the same (simplified) as the real one.

Thanks for your help.

CountingLessonsB.zip

Posted

I am trying to say two things:

If a subject - say History - has 8 lessons and those lessons are not listed in a Lessons table, then you have no place to keep the name of the lesson, or how difficult it is, or anything else to describe it. That's not necessarily a fault; perhaps you don't need those things.

The second thing is that without such table, you are asking how to list something that does not exist. That's not to say it's not possible - it's just easier to list things you already have. Here we need to generate the numbers 2, 3, 4 and 7, given the list of used numbers (1, 5, 6 and 8) and the final number in the sequence (8).

Since you have the Advanced version, you could use a custom function for this - see the attached.

CountingLessonsCF.zip

Posted

No words my dear friend.

Your first thing. I understand now what you were trying to tell me, I can see the point now. As many information about the lessons as you can have seems to be better (I totally agree with that), but in this case, my db is made just to see which of those lessons have been asked, with no other worries. I can tell you all of them are pretty hard, :laugh: .

Your second. So the clear thing is that with the table you suggested would have been easier to acomplish my goal. I understand it but I work with the already made exams. Collecting past asked questions I try to predict the future, :laugh: , so lessons never asked don't mind in this case. Well, they mind but not as much as to make single records of them.

The only Advanced here is my FileMaker version, its "driver" is only a bad beginner.

As said at the begining, no words my dear friend. Thank you very much.

Posted

I've added a field in examquestion table:

cMissingLessonsComa: Substitute ( Subjects::cMissingNumbers ; ¶ ; ", " )

Just to use the result as normal text. i.e. Lessons never asked: 2, 3, 4, 7.

Posted

You could have made the original field, cMissingNumbers =

Substitute ( MissingNumbers ( List ( ExamQuestions::Lesson ) ; Lessons ) ; ¶ ; ", " )

and place directly it on your layout.

  • 3 months later...
Posted

Is it possible to do the same but with a giving start number?

I.e.,

maxNumber: 55.

lessons of second quarter start: 22.

This topic is 4675 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.