LauraMcFeely
6 years agoQrew Cadet
Displaying most recent and next upcoming record
Hello!
My app is used to track my team's relationships with teachers, who use our cases as teaching material in their classrooms. My team is interested in seeing how a teacher's experience using cases changes once we offer them teaching advice. For this reason, it would be helpful to be able to see information for the teacher's most recent case before we offered advice, as well as for the next case that they taught.
My two relevant tables are Cases and Teaching Advice. 1 Teaching Advice has many Cases.
I am halfway there. I've successfully figured out how to pull in information for the teacher's most recent case:
1. Summarize the Maximum Case date where the [Case date] is before the date in the field [Teaching Advice Date]. Call this [Most recent case before teaching advice]
2. Look that up down to Cases.
3. Summarize the maximum [Record ID#] where the [Case date] is equal to the date in the field [Most recent case before teaching advice]. Call this [Record ID# of most recent case before teaching advice]
4. Then I created a reverse relationship where 1 Case has many Teaching Advice, based on the reference [Record ID# of most recent case before teaching advice], which summarizes the maximum of Record ID# based on [Case date] is equal to the date in the field [Most recent case before teaching advice]. I added the relevant lookup fields I wanted to see.
Then I attempted to duplicate all of these fields, to pull in information for the teacher's following case, with a couple of small changes in italics:
5. Summarize the Minimum Case date where the [Case date] is after the date in the field [Teaching Advice Date]. Call this [Case immediately following teaching advice]
6. Look that up down to Cases.
7. Summarize the minimum [Record ID#] where the [Case date] is equal to the date in the field [Case immediately following teaching advice]. Call this [Record ID# of case immediately following teaching advice]
8. Create another reverse relationship where 1 Case has many Teaching Advice, based on the reference [Record ID# of case immediately following teaching advice], which summarizes the maximum of Record ID# based on [Case date] is equal to the date in the field [Case immediately following teaching advice].
I am running into a problem with step 5, and I can't figure out why. The field won't populate with information. If I change "after" to "before", then the information does fill in, but it's the wrong information -- it's all of the information for the most recent case, not the following case (which makes sense). This makes me think that either I have one small mistake that I'm not seeing, or that Quick Base won't let me do multiple relationships between the same two tables.
I'd appreciate your advice! Thank you!
------------------------------
Laura
------------------------------
My app is used to track my team's relationships with teachers, who use our cases as teaching material in their classrooms. My team is interested in seeing how a teacher's experience using cases changes once we offer them teaching advice. For this reason, it would be helpful to be able to see information for the teacher's most recent case before we offered advice, as well as for the next case that they taught.
My two relevant tables are Cases and Teaching Advice. 1 Teaching Advice has many Cases.
I am halfway there. I've successfully figured out how to pull in information for the teacher's most recent case:
1. Summarize the Maximum Case date where the [Case date] is before the date in the field [Teaching Advice Date]. Call this [Most recent case before teaching advice]
2. Look that up down to Cases.
3. Summarize the maximum [Record ID#] where the [Case date] is equal to the date in the field [Most recent case before teaching advice]. Call this [Record ID# of most recent case before teaching advice]
4. Then I created a reverse relationship where 1 Case has many Teaching Advice, based on the reference [Record ID# of most recent case before teaching advice], which summarizes the maximum of Record ID# based on [Case date] is equal to the date in the field [Most recent case before teaching advice]. I added the relevant lookup fields I wanted to see.
Then I attempted to duplicate all of these fields, to pull in information for the teacher's following case, with a couple of small changes in italics:
5. Summarize the Minimum Case date where the [Case date] is after the date in the field [Teaching Advice Date]. Call this [Case immediately following teaching advice]
6. Look that up down to Cases.
7. Summarize the minimum [Record ID#] where the [Case date] is equal to the date in the field [Case immediately following teaching advice]. Call this [Record ID# of case immediately following teaching advice]
8. Create another reverse relationship where 1 Case has many Teaching Advice, based on the reference [Record ID# of case immediately following teaching advice], which summarizes the maximum of Record ID# based on [Case date] is equal to the date in the field [Case immediately following teaching advice].
I am running into a problem with step 5, and I can't figure out why. The field won't populate with information. If I change "after" to "before", then the information does fill in, but it's the wrong information -- it's all of the information for the most recent case, not the following case (which makes sense). This makes me think that either I have one small mistake that I'm not seeing, or that Quick Base won't let me do multiple relationships between the same two tables.
I'd appreciate your advice! Thank you!
------------------------------
Laura
------------------------------