birt icon indicating copy to clipboard operation
birt copied to clipboard

Add a DENSE_RANK aggregate function (like in SQL)

Open hvbtup opened this issue 3 years ago • 3 comments

We have SUM, AVE, COUNT aggregate function etc. and RANK, but not DENSE_RANK.

The DENSE_RANK aggregate function often comes handy.

The important difference between DENSE_RANK and RANK is that if you have e.g. 4 rows with the following values (assuming they are already sorted:

 value       RANK    DENSE_RANK
 ABC         1         1
 ABC         1         1
 DEF         3         2
 GHI         4         3

DENSE_RANK can be used for "auto-numbering" whereas RANK leaves gaps in the numbers.

See #975 for an example where the function is simulated with scripting.

hvbtup avatar May 24 '22 15:05 hvbtup

I am curious how report designs will evolve further also together with requested software extensions. :thinking:

Markus-Elfring avatar May 25 '22 08:05 Markus-Elfring

We are both Germans and our understanding of English seems somewhat incompatible 😃. Maybe you can just call me in Bochum, 0234 94375 14

hvbtup avatar May 25 '22 08:05 hvbtup

Direct communication (as it happened a moment ago) can trigger further desirable effects.

Markus-Elfring avatar May 25 '22 10:05 Markus-Elfring