M4-S1 — Queries, figures and reports
Section titled “M4-S1 — Queries, figures and reports”| Module | M4 — What people see |
| After this session you can | Write the query catalog and the figures-and-reports plan of a blueprint, choosing the right surface for each question the business asks. |
| Time | Facilitated: 56 min · On your own: 56 min |
| Before you start | M3-S3: your workflow, time limits and notifications. Requirements F-13 to F-16 in your register, and Salma’s interview (D). |
| Your binder | So far: BRD 1.0, PDD 1.0, maps 1 to 3, blueprint 0.6 (B1 to B9), the RTM to its Process and flow column, the CR register, CR-01 form parts 1 to 4 for rules, time and messages. This session adds: blueprint B10 and B11, the RTM’s People see cells for F-13 to F-16. |
| Go deeper | Queries and filters · Summaries, dashboards and counters · Counters and record numbers · Reports · Export templates |
◆ Orientation (1 min) — “About sixty”
Section titled “◆ Orientation (1 min) — “About sixty””At 11:00 in the observation log, Salma asked how many tickets were open, and the answer took a hand count: “about sixty”. In her interview she asks for more: a chart she can click into, a report on paper by the 28th, how long tickets take, and who is overloaded. Each of these is a question about records: how many, how long, who, which ones.
Your blueprint already says what the business keeps (B1 to B5) and how the work moves (B6 to B9). This session adds what people are shown. You turn each question into a saved query and choose the surface that shows it, so that F-13 to F-16 are met by name. These figures are also how the business will check its success measures every month (SM-2, SM-4): a figure nobody can define is a measure nobody can check.
▤ Concept (8 min) — From a question to a figure
Section titled “▤ Concept (8 min) — From a question to a figure”A query: a saved question about records
Section titled “A query: a saved question about records”In ACP you saved a filter and met the pointer @me
(ACP M4-S1). A query is a saved filter over one entity’s
records, made of conditions. Each condition has a field, an operator (equals, is
empty, is filled, contains, is before…) and a value. Conditions are combined in a group:
All conditions are met, or Some conditions are met; groups can contain groups, so “status
is Open and (assigned to me or created this week)” is one query.
A condition can test more than the record’s own fields:
- The record’s details: who created it and when, who last updated it and when.
- Fields of a linked record: Customer account › Tier is Priority. Each step along a link adds work, so keep chains short; a mapped field (M2-S2) is often the better answer.
- The workflow: the current step, its owner, earlier steps. “Open” tickets are those whose current step is not the final step; “waiting at the desk” are those whose current step is Help Desk. The platform keeps the step up to date; a status depends on an automation or a person setting it.
The value can come from several places:
| Value | Use it for | Example |
|---|---|---|
| Fixed | A value chosen now | status is Closed |
| Another field | Comparing two fields of the same record | Assigned to is the person who last updated it |
| A pointer | Whoever is looking, or the date today | @me, @myGroups, @myOrgUnit; @today, @StartOfMonth |
| A parameter | A value supplied where the query is used, or asked for when someone turns it on | the account, chosen each time |
| A formula | A rule the others cannot express (the builder writes it) | — |
A query can also become a one-click quick filter on a list, or colour matching records with a tag. It is reused everywhere: as a view’s source, to narrow a reference field’s options, as the rows of a report, as the source of a figure. So you specify each query once, in a query catalog, and refer to it by name. Name it by whose records and which ones: a name such as “my tickets” means one list to a customer and another to a representative, and a builder who reads it cannot tell which you meant.
Two limits to design around. An encrypted field cannot be used in any condition, and the contents of a JSON field cannot be filtered. And a query can only test what a field records: if nothing on the record says a thing happened, no query can find the records where it did.
Figures: summaries and dashboards
Section titled “Figures: summaries and dashboards”A summary is one card calculated from an entity’s records: a single Number, a short List, or a Chart (Column, Bar, Line, Pie or Doughnut). You specify:
- its source: all records, or a saved query;
- the field and the function: Count, Sum, Min, Max or Average;
- for a list or a chart, what to Group by (a field, or a date grouped by year, quarter, month, week or day); a Number has no grouping;
- how it is shown, where, and who may see it.
Screenshot pending The Summary Information form of Ticket Status: Show as Chart, Chart type Doughnut, Source All entries, Field Ticket number, Function Count, Group by Ticket status What to notice: a summary is fully described by six choices. If your specification gives all six, the builder has nothing to guess.
Three facts change designs. A summary always leaves out archived and obsolete records, so it will not match a list that shows them. When a grouping has very many values, the chart shows the largest and gathers the rest as Other Values. And if the entity has a Sensitive field, each summary has a policy for whether it may use the hidden values; a reader who may not see them gets a locked card instead of a figure.
Summaries are gathered on dashboards: every entity and every module has one, and there is one for the whole system. People see a dashboard where you put it: inside a view, optionally as the screen the view opens on and with Click to browse from a segment to its records (as the desk’s Incoming Requests does), or on a page (next session).
Counters
Section titled “Counters”A counter is a small badge in the top bar, next to the notifications: 12 tickets waiting. It counts the records of a view, optionally only those matching a saved query (its Counting Criteria), and opens them when selected. Use a counter for work waiting for me or my team, which people should see without going to look for it. Specify the view, the query, and who should see it. Two facts follow from “it counts a view”: the view must offer the Counter view display, or the counter cannot be saved; and people see the counter only if they may open that view.
Reports
Section titled “Reports”A report is a printable table: its rows come from one saved query on one entity, its columns are the fields you list, in order. People open it in the portal and export it; it can also be emailed on a schedule, as a link, a PDF or an Excel attachment. Specify the query and the columns in order; the readers; the schedule and recipients, if it is sent; the layout (Portrait or Landscape).
Limits that belong in the BRD, because the business will ask:
- Web only. The mobile app does not open reports.
- PDF or Excel. A report does not export to CSV.
- A PDF prints at most 7 columns. Columns after the seventh are left out. Put the important ones first, or send Excel, which has no limit.
- Protected fields are masked for every reader not allowed to see them, on screen and in files.
Documents: export templates
Section titled “Documents: export templates”A report is a table of many records. Sometimes the business needs a document: a letter to one customer, a certificate, a formatted list. An export template is a Word, HTML or Excel document prepared in advance with placeholders where a record’s values go. It works for one record or several, is used from a view, or by an automation that generates the file (for example to attach it to an email). Specify the document, which values go where, and who may produce it; the builder prepares the file. Like every element of the blueprint, it needs a requirement behind it.
Choosing the surface
Section titled “Choosing the surface”| The business asks… | Specify |
|---|---|
| “Show me these records” (my assigned tickets, tickets waiting) | A query, used as a view’s source or a quick filter |
| “How many / how much, at a glance” | A summary, Number |
| “How many of each” (by status, by person, by month) | A summary, List or Chart, grouped |
| “Tell me when work is waiting for me” | A counter (and maybe a notification) |
| “A table I can print, file or receive monthly” | A report |
| “A formatted document for one record” | An export template |
◇ Worked scenario (2 min) — “Who is overloaded, and how long do tickets take?”
Section titled “◇ Worked scenario (2 min) — “Who is overloaded, and how long do tickets take?””Salma’s last two questions from D. Decide each step before you read on.
- “Who is overloaded?” That is “how many of each”: a summary, Chart (Bar), source a query of open tickets (current step is not the final step), function Count, Group by Assigned to. Not a report: she wants to see it at a glance, not print it.
- Where does she see it? In Incoming Requests beside the status chart, which the desk already opens, and on her own screen, which you design next session. Readers: the desk and the support manager.
- “How long do tickets take?” That is an average over time: a summary, Chart (Line), source a query of closed tickets, function Average of a resolution time, Group by the closing date, by month. Is there a resolution time to average?
- Check the source before you rely on it. Yes: M2-S1 decided it. The time limits of M3-S3 record whether each step was on time, not the time from opening to closing, and a summary cannot add steps together, so B2 keeps a calculated Resolution time (F-16). Had B2 held nothing to average, the figure would wait for an open question to Rania Saleh, not an invented field.
The habit to copy: name the question, then the surface, then the query it rests on, and when the figure needs something you cannot confirm, raise the question instead of inventing the field.
⛏ Lab (38 min) — Query catalog, summaries, report (B10, B11)
Section titled “⛏ Lab (38 min) — Query catalog, summaries, report (B10, B11)”Goal. Blueprint sections B10 and B11 for Release 1: the queries every figure and screen rests on, the support manager’s figures, and the monthly report, with the limits written down. You write one complete example of each kind; the counters and the Release 2 queries are handed out after the lab, from the reference binder.
Before you start. Have open:
- your register (BRD A8): F-03, F-11, F-13 to F-16, NF-01, NF-02, and decision D-01 (who sees which tickets) in A11;
- Salma’s interview (D) and the observation log;
- your blueprint: B2 and B3 for field names and statuses (M2-S1), B7 for the ticket workflow’s steps (M3-S2);
- the blueprint template, rows B10 and B11.
Steps.
- The query catalog (B10). Columns: Name · Entity · Conditions in words · Used by · Req. Write five queries on Support Tickets: open tickets; tickets waiting at the desk; a representative’s own open tickets (F-13); the tickets a customer sees (D-01: the ones they opened and, from Release 2, the ones opened for them); closed tickets. Name each by whose records and which: never “my tickets”.
- The summaries (B11). Columns: Title · Source · Function · Group by · Show as · Where · Readers · Req. Write three: the status chart (F-14; the pilot already has it as Ticket Status: keep the name), open tickets per representative, and average resolution time.
- The report (B11). The pilot’s Performance Report, kept by name, specified in full: query, columns in order, readers, schedule, recipients, attachment type, layout (F-15, SM-4).
- Documents. In week 7, Ziad Amin writes: “After each site visit, could the customer get a one-page visit report on our letterhead? No rush.” Decide whether B11 specifies an export template, and write where his idea goes instead, if not.
- The limit notes. For each figure and the report, check the four limits: archived records, the 7-column PDF, web only, protected fields. Write a note where one applies.
- The source. Your resolution chart averages Resolution time, which your B2 has from M2-S1 (the data dictionary). Check that every field a figure groups or averages is in B2 with the name you use; if one is missing, take it from M2-S1, do not invent it.
- Trace. In the RTM’s People see column, write the B10 and B11 items that meet F-13, F-14, F-15 and F-16.
Check.
- Every figure names a saved query from your catalog (or All entries), not a description.
- Queries about “mine” use the pointer
@me, never a person’s name, and every name says whose records and which. - “Open” is defined by the workflow (the current step), not by a status someone must set.
- The report has at most 7 columns (or says why it is sent as Excel), and nobody needs it on a phone.
- Every item names a requirement, and every field a figure uses is in your B2.
Pass condition. All five boxes are ticked; your catalog has the five queries of the model answer (names may differ, but no two queries share a name); and Ziad’s idea is not in B11.
If something goes wrong
| What you see | What to do |
|---|---|
| Your “open tickets” query is “status is not Closed” | It depends on an automation having set the status. Prefer the workflow: current step is not the final step. |
Your customers’ query is “Assigned to equals @me” | That is the representatives’ list. Customers are the ones who created the ticket (or, from Release 2, the person it was opened for). |
| A summary has no Group by but shows “per representative” | A List or Chart needs a grouping; a Number cannot be “per” anything. |
| The report has 9 columns | A PDF prints 7. Cut to the ones Salma reads, or send Excel. |
| You specified a report for “tickets waiting at the desk now” | That is work waiting: a counter or a view, not a monthly table. |
| You added a template for Ziad’s visit report | No requirement asks for it. A new need after the baseline is not designed in: it is logged (step 4 of the model answer). |
Hand-out: the rest of B10 and B11
Section titled “Hand-out: the rest of B10 and B11”These rows come from the reference binder. File them in your blueprint as they are, check that each one names its requirement, and add those requirements’ People see cells to your RTM.
B10, the other queries
| Name | Entity | Conditions in words | Used by | Req. |
|---|---|---|---|---|
| All tickets | Support Tickets | Every ticket (the pilot’s query, kept) | Monthly report | F-15 |
| My account’s tickets (R2) | Support Tickets | Customer account › Contacts includes @me | Office managers’ view | P4, D-01 |
| Visits waiting for approval (R2) | Site Visit Requests | Current step is Manager approval | Support manager’s page | P2b |
| My visits (R2) | Site Visit Requests | Field engineer equals @me or current step is Schedule and visit with no engineer yet | Engineers’ view | P2c |
| Open questions (R2) | Pre-sales Questions | Current step is Answer question | Desk’s question list | P3a |
B11, the counters
| Counter | View | Counting Criteria | Seen by (who may open the view) | Req. |
|---|---|---|---|---|
| Waiting at the desk | Incoming Requests | Waiting at the desk | Technical Support Office, and the support manager | F-11, NF-03 |
| My open tickets | My assigned tickets | My assigned tickets | Representatives | F-13 |
| Visits to schedule (R2) | My visits | My visits | Field Engineers | P2c |
Each of these three views must offer the Counter view display: say so when you write their faces in M4-S2.
Model answer
B10, the queries you wrote (entity Support Tickets)
| Name | Conditions in words | Used by | Req. |
|---|---|---|---|
| Open tickets | Current step is not the final step | Workload chart; Incoming Requests | F-14 |
| Waiting at the desk | Current step is Help Desk | Desk counter | F-11, NF-03 |
| My assigned tickets | Assigned to equals @me and current step is not the final step | Representatives’ view and counter | F-13 |
| Tickets I reported | Created by equals @me or Reported for equals @me (the second condition from Release 2, when Reported for exists) | Customers’ view | F-03, NF-01, D-01, P4 |
| Closed tickets | Ticket status equals Closed (the pilot’s query, kept) | Resolution chart | F-16 |
The two lists that the pilot’s worked solutions both called “My tickets” now have names that say whose: My assigned tickets (the representative is the assignee) and Tickets I reported (the customer is the creator, or the person it was opened for).
B11, the summaries
| Title | Source | Function | Group by | Show as | Where | Readers | Req. |
|---|---|---|---|---|---|---|---|
| Ticket Status (the pilot’s) | All entries | Count | Ticket status | Chart, Doughnut | Incoming Requests, landing, Click to browse | Desk, support manager | F-14 |
| Open tickets per representative | Open tickets | Count | Assigned to | Chart, Bar | Incoming Requests; support manager’s page | Desk, support manager | F-14; D |
| Average resolution time | Closed tickets | Average of Resolution time | Closing date, by month | Chart, Line | Support manager’s page | Support manager | F-16 |
B11, the report. Performance Report (the pilot’s, kept): query All tickets; columns in order Ticket number, Ticket title, Ticket status, Assigned to, creation date, End date (6, inside the PDF limit of 7); readers Support Manager and Technical Support Office; sent on the 28th of each month at 08:00 to Support Manager, with the link and a PDF attachment; Landscape. F-15, SM-4.
B11, documents. No export template: no requirement asks for a formatted document. Ziad’s visit report is a new idea after the baseline, and he says it can wait: a next-phase idea, added to “Later” in BRD A4 with Ziad as its source, as you did with J4 in M1-S2. It is not a change request, because nobody has asked to change what was signed.
Limit notes. The charts leave out archived tickets and the report may not, so their numbers can differ: tell Salma before she compares them. The report opens on the web only; on her phone she uses the charts (NF-02, BRD A4). No protected fields (B4), so nothing is masked.
The resolution chart’s source. B2 already has Resolution time (M2-S1): a calculated value in hours, from the record’s creation to End date, written by the builder (F-16). The time-limit records show lateness per step, not the time from opening to closing, so they could not replace it.
RTM, People see. F-13: B10 My assigned tickets; B11 counter My open tickets · F-14: B10 Open tickets; B11 Ticket Status, Open tickets per representative · F-15: B10 All tickets; B11 Performance Report · F-16: B10 Closed tickets; B11 Average resolution time.
Your binder now (after M4-S1)
- B10: your five queries and the five handed out, each with its requirement.
- B11: three summaries, three counters, the report, “no documents”, the limit notes.
- B2: Resolution time (from M2-S1) is the source of the resolution chart.
- BRD A4 “Later”: the visit report idea, with Ziad Amin as its source.
- RTM: People see filled for F-13 to F-16.
Compare with the model answer and the hand-out above: together they are the reference binder’s B10 and B11.
✓ Practice (6 min) — Check your understanding
Section titled “✓ Practice (6 min) — Check your understanding”Salma wants one figure on her page: the tickets opened since the first of this month, starting again from zero on the 1st without anyone touching it. Which condition goes in its query?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
In week 10 the pilot’s test tickets are archived and Release 1 starts. That afternoon Yusuf turns on archived records in Incoming Requests and counts 47 tickets; the Ticket Status chart beside the list counts 12. Nothing is broken. Why do they differ?
Check your answer
The correct answer is A. Open the explanation under each option to see why.
From Release 2, Ziad Amin wants a monthly list of every completed site visit: visit number, ticket title, account, account tier, engineer, visit date, outcome, the customer’s confirmation date and the support manager’s approval date. He wants it emailed as a PDF on the 1st and reads it in his tablet’s browser.
What must the specification of this report say?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
The builder cannot save the counter Waiting at the desk. Its view, Incoming Requests, offers the Table view and Kanban view displays, and the query Waiting at the desk exists. What is missing?
Check your answer
The correct answer is A. Open the explanation under each option to see why.
Which of these needs is met by an export template rather than by a report or a summary?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
↺ Recap (1 min) — What you can do now
Section titled “↺ Recap (1 min) — What you can do now”You can write a query catalog with conditions, pointers and workflow filters, and names that say whose records and which. You can choose the surface for each question: a summary on a dashboard, a counter, a report or an export template, with the limits that change the design written down. And when a figure depends on something only the builder can answer, you raise it as an open question and record the answer as a decision, instead of inventing a field.
Next. All of this still needs a screen and an audience. In M4-S2 you decide, for each group of people, which views and faces they get, what lands on their home page, and what they may see, do and be told. Then you finish defining CR-01: what its options would mean for figures and audiences.