Skip to main content
Question

Aggregate on Grouping of Boolean Field

  • September 10, 2025
  • 6 replies
  • 88 views

I have a GI showing shipment lines, I'm grouping by Shipment number. The I want to show the MAX aggregate value for a boolean field on each line, but its not working for every shipment line.

I tried creating an IF formula to display as 1 or 0, but you can't aggregate a formula.

Any ideas?

6 replies

Forum|alt.badge.img+1
  • Jr Varsity I
  • September 11, 2025

I have a GI showing shipment lines, I'm grouping by Shipment number. The I want to show the MAX aggregate value for a boolean field on each line, but its not working for every shipment line.

I tried creating an IF formula to display as 1 or 0, but you can't aggregate a formula.

Any ideas?

When you say you are trying to show the MAX aggregate value for a boolean field, do you mean you want to show boolean = true if any of the lines are true, else false if none of the boolean fields are true? If this is not what you are trying to do, I think you will need to provide more information on what you are trying to do.


  • Author
  • Freshman I
  • September 11, 2025

I have a GI showing shipment lines, I'm grouping by Shipment number. The I want to show the MAX aggregate value for a boolean field on each line, but its not working for every shipment line.

I tried creating an IF formula to display as 1 or 0, but you can't aggregate a formula.

Any ideas?

When you say you are trying to show the MAX aggregate value for a boolean field, do you mean you want to show boolean = true if any of the lines are true, else false if none of the boolean fields are true? If this is not what you are trying to do, I think you will need to provide more information on what you are trying to do.

Yes correct, I would like the field to show true if any of the lines are true, else false if none are true.

See attached pics


Forum|alt.badge.img+1
  • Jr Varsity I
  • September 11, 2025

I have a GI showing shipment lines, I'm grouping by Shipment number. The I want to show the MAX aggregate value for a boolean field on each line, but its not working for every shipment line.

I tried creating an IF formula to display as 1 or 0, but you can't aggregate a formula.

Any ideas?

When you say you are trying to show the MAX aggregate value for a boolean field, do you mean you want to show boolean = true if any of the lines are true, else false if none of the boolean fields are true? If this is not what you are trying to do, I think you will need to provide more information on what you are trying to do.

Yes correct, I would like the field to show true if any of the lines are true, else false if none are true.

See attached pics

If you are finding your current method is not working, you can use something similar to this:
=iif(sum(cint([BOOLEANFIELD])) > 0, True, False)

 

You will also need to use the schema field to choose a boolean field to cast the value. Hope this helps.


  • Author
  • Freshman I
  • September 11, 2025

I have a GI showing shipment lines, I'm grouping by Shipment number. The I want to show the MAX aggregate value for a boolean field on each line, but its not working for every shipment line.

I tried creating an IF formula to display as 1 or 0, but you can't aggregate a formula.

Any ideas?

When you say you are trying to show the MAX aggregate value for a boolean field, do you mean you want to show boolean = true if any of the lines are true, else false if none of the boolean fields are true? If this is not what you are trying to do, I think you will need to provide more information on what you are trying to do.

Yes correct, I would like the field to show true if any of the lines are true, else false if none are true.

See attached pics

If you are finding your current method is not working, you can use something similar to this:
=iif(sum(cint([BOOLEANFIELD])) > 0, True, False)

 

You will also need to use the schema field to choose a boolean field to cast the value. Hope this helps.

I've setup as attached and having this error attached. What have I got wrong?


  • Author
  • Freshman I
  • September 14, 2025

Has anyone Else got any other ideas?

 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • November 5, 2025

Hi ​@Shayne were you able to find a solution? Thank you!