Solved

Sum per group in Report Designer

  • 27 October 2022
  • 3 replies
  • 292 views

Userlevel 4
Badge +9

We would like to sum a quantity field per group in Report Designer. Is this somehow possible?

To be more precise; we want to sum the quantity per Custom Stat no in the Delivery Note for Shipment.

icon

Best answer by MiLeNL 27 October 2022, 15:30

View original

3 replies

Userlevel 4
Badge +10

HELLO JUR!

Hope you are doing well ;-).

 

Somehow it is possible, but i can't think of a very nice solution. If you only have a few Custom Stat No, you can put in a condition in the report for each stat group. Like below example.

 

Then it is possible to sum;

 

However, it will cause a lot of work if the custom stat groups change. Perhaps it's possible to fetch the custom stat no as a list and filter it dynamically with the StrCase function. But that will be a lot of trial and error.

Userlevel 4
Badge +9

Hi stranger! I’m doing fine. 😀

You triggered me with the StrCase but I couldn’t get that to work. However, I’ve got it working up untill a point I think is acceptable. I put everything in a single custom field with a listagg, and used the replace function to replace the seperater with a ‘$new_line’. That worked so far!

Userlevel 4
Badge +10

Always need to be a bit creative 😀

Reply