Skip to content

proposal: a count tile over an aggregating report - #67

Open
delchev wants to merge 1 commit into
mainfrom
propose/count-widget-aggregating
Open

proposal: a count tile over an aggregating report#67
delchev wants to merge 1 commit into
mainfrom
propose/count-widget-aggregating

Conversation

@delchev

@delchev delchev commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

widget: { kind: count } is specified as "the number of records the report yields". A report that declares measures: yields one row per group, so a generator that counts result rows shows the number of GROUPS - a report dimensioned by status reads 4 next to a list of 14 records, which looks like a filter rather than a defect.

The proposal adds no key: the count of an aggregating report is its count(*) measure summed over the rows (under the same filter, scope, parameters and widget pins), an un-aggregated report keeps the row count, and an aggregating report carrying a count tile with no count(*) measure is rejected at generation instead of showing the group count. A ledger balance / statement, whose rows are its unit of account, is exempt.

Implemented in eclipse-dirigible/dirigible#7113; reported as eclipse-dirigible/dirigible#7102.

🤖 Generated with Claude Code

`kind: count` is specified as "the number of records the report yields", which
on a report declaring measures is not the number of rows in its result set -
those are groups. Specify the count as the report's `count(*)` measure summed
over the rows, and reject an aggregating report that declares no such measure
rather than let a generator show the number of groups.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant