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 2022-06-09 07:03:28

Johann
Member
Registered: 2022-05-30

JXLS Report - `SUM()` function not working on generated rows

I am trying to do a SUM() calculation on one of the columns generated by my SQL query, and following the GitHub example shown here: https://ibb.co/2KchrC1 (https://github.com/infofabrik/reportser … eries.xlsx)

Say cell A2 I have the Excel note with a valid SQL query, then:

in A2 I have: ${product.quantity}
in cell A3 I have: SUM(A2)

When the report is executed, the result shows 0 in cell A3 instead of the sum of the values of the rows generated. The method I have used seems correct and looks in line with the JXLS documentation here http://jxls.sourceforge.net/samples/excel_formulas.html and here https://reportserver.net/en/guides/admi … S-Reports/

In fact, trying out the JXLS reports in the demo instance, it seems the same issue there: https://ibb.co/9TZSGGP

Link to demo: https://demo.raas.datenwerke.net/?local … 7d554e08d2



Any ideas what could be the issue?

Last edited by Johann (2022-06-09 07:17:57)

Offline

#2 2022-06-09 08:20:13

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: JXLS Report - `SUM()` function not working on generated rows

Hi Johann,

your screenshot shows only the preview window. If you click on excel export, which is what jxls is about, it should work. The preview is just a rough preview to see what happens in the report, but the real jxls report is the excel export.

Regards,
Eduardo

Offline

#3 2022-06-09 08:22:28

Johann
Member
Registered: 2022-05-30

Re: JXLS Report - `SUM()` function not working on generated rows

Ah, no wonder. Thank you!

Offline

Board footer

Powered by FluxBB