Round to 2 decimal in field

I want round: [SUM(<qReportIzpis."Nabava">)/SUM(<qReportIzpis."anQty">*<Upit1."anDimWeight">)] to 2 decimals.
This I show in first field, but in next I want multiply with something else, so I need to round this, to have correctly value on report. I try:
[(round(SUM(<qReportIzpis."Nabava">)/SUM(<qReportIzpis."anQty">*<Upit1."anDimWeight">),2)) * SUM(<Upit2."HRK">)] but nothing happend if I go without round then I have mistake:
[SUM(<qReportIzpis."Nabava">)/SUM(<qReportIzpis."anQty">*<Upit1."anDimWeight">)] = 218.48
SUM(<Upit2."HRK">) = 12.00
that's mean= 218.48 * 12.00 = 2621,76, but report show me: 2621,34, so I need round on 2 decimals. How to do that? THank you.

Comments

  • edited 8:51PM
    I would have tried something like this:

    [(round(SUM(<qReportIzpis."Nabava">) / SUM(<qReportIzpis."anQty">*<Upit1."anDimWeight">) * 100) / 100) * SUM(<Upit2."HRK">)]

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.