Solved

How to apply Modulus operator in report designer?

  • 7 December 2023
  • 3 replies
  • 55 views

Userlevel 3
Badge

Hello Community,
I have a code line that I am trying to apply in report designer too but haven’t been able to. The Code is:
[SOLine.LineNbr]-1) Mod 8 + 1
How can I apply the same code in my report designer for a field?

icon

Best answer by Naveen Boga 7 December 2023, 05:54

View original

3 replies

Userlevel 7
Badge +7

Hi @harshita53 ,

In Report Designer the modulus operator is %, as in:

=[SOLine.LineNbr]-1) % 8 + 1

​​​​​​

Userlevel 3
Badge

Hi @harshita53 ,

In Report Designer the modulus operator is %, as in:

=[SOLine.LineNbr]-1) % 8 + 1

​​​​​​

Hey @lauraj46 , I tried your suggested syntax & now my report is skipping the even numbers. So for example if i have 8 items it displays 1 of 8, 1 of 8, 3 of 8, 3 of 8 .. & so on instead of 1 of 8, 2 of 8, 3 of 8, 4 of 8...

Userlevel 7
Badge +17

Hi @harshita53  I just checked the below formula and it is working as expected and not showing like 1 of 8, 1 of 8, 3 of 8, 3 of 8. Can you re-check and confirm

 

=[SOLine.LineNbr]-1) % 8 + 1

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved