I have a query where I'm trying to create a field that calculates based off of another field. I'm trying to create an IIf statement that would give me the Cumulative field based on the Segment field, i.e., If Segment=B, Sum A and B, and if Segment=C, Sum A, B, and C, etc. Appreciate if someone could point me in the right direction. Thanks.
*Desired field*
Area Segment Total Cumulative
East A 5 5
East B 7 12
East C 2 14
East D 14 28
West A 16 16
West B 9 25
West C 10 35
West D 7 42