Skip to main content
Solved

Sum per group in Report Designer

  • October 27, 2022
  • 3 replies
  • 462 views

Forum|alt.badge.img+9
  • Hero (Customer)
  • 59 replies

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.

Best answer by MiLeNL

Always need to be a bit creative ðŸ˜€

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+11
  • Hero (Partner)
  • 100 replies
  • October 27, 2022

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.


Forum|alt.badge.img+9
  • Author
  • Hero (Customer)
  • 59 replies
  • October 27, 2022

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!


Forum|alt.badge.img+11
  • Hero (Partner)
  • 100 replies
  • Answer
  • October 27, 2022

Always need to be a bit creative ðŸ˜€


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings