Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#1 2016-05-18 11:34:16

karolina
Member
Registered: 2014-08-09

Filters in the Dynamic List

Hi,

In the Dynamic List view I would like to display all rows in case value in one of the columns are duplicated.

For instance: I have a list of invoices and I'd like to quickly find all cases where the invoice number is duplicated (let's say the relevant column is INVOICE_NUMBER)

My understanding is that this could be done by prefiltering and expressions like ${agg.count()}

Am I right? I made some attempts, trying to figure it out from the documentation, but without success.

Another case would be to show all the invoices with net value (NET_VALUE) > 10000. I guess there is a similar way to achieve that - I just need some hints and examples.

Cheers,
Karolina

Offline

#2 2016-05-18 11:49:24

karolina
Member
Registered: 2014-08-09

Re: Filters in the Dynamic List

OK, I found the answer for the second question:

I had to put "10000 - " in the text input page of the "Include range" part of the filter confuguration, as described in 6.4 section of the User Guide.

Offline

#3 2016-05-18 15:49:20

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Filters in the Dynamic List

Hi Karolina,

The agg.count won't really help in this situation. The easiest is to use a window function and add an extra attribute either directly in the underlying report or as a computed column. Assuming the table is TEST_TABLE and the field you are interested in is INVOICE_NUMBER you can use the following query:

SELECT *, COUNT(*) OVER (PARTITION BY INVOICE_NUMBER) AS CNT_INVOICES FROM TEST_TABLE

(The example is for PostgreSQL.) This adds the field CNT_INVOICES which contains the number of records with the same INVOICE_NUMBER in the table. Once you have that, you can simply use a regular filter and filter on

2 -

to get all the records that have duplicate INVOICE_NUMBERS.

Hope this helps.

Cheers,
Arno

Offline

#4 2016-05-18 15:57:46

karolina
Member
Registered: 2014-08-09

Re: Filters in the Dynamic List

Thanks Arno!

If possible, please share some more examples of filtering expressions in one of your future blogposts about the Dynamic List smile

Cheers,
Karolina

Offline

#5 2016-05-18 16:00:47

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Filters in the Dynamic List

Sounds like a plan big_smile

Offline

Board footer

Powered by FluxBB