I've a column in my data source with lot of duplications. I do have two columns put under group option. One need a maximum value and other need sum of all those maximum values. I can get first one by placing formula field as shown below, but don't know how to put the other one using the first one. Any help is appreciated.
if {?Dropdown_Group} = 2 then
maximum({CX_GL_SALESBYDIV.budgetamount},{@GroupOption})
Example data
custid partgrp budget
ab001 xyz 100
ab001 xyz 100
mc001 xyz 200
mc001 xyz 200
Groupoption
1: customer
2: partgrp
desired output
custid partgrp budget
grp1 ab001 xyz 100
grp1 mc001 xyz 200
------------------------------
grp2 xyz 300
-------------------------------
if {?Dropdown_Group} = 2 then
maximum({CX_GL_SALESBYDIV.budgetamount},{@GroupOption})
Example data
custid partgrp budget
ab001 xyz 100
ab001 xyz 100
mc001 xyz 200
mc001 xyz 200
Groupoption
1: customer
2: partgrp
desired output
custid partgrp budget
grp1 ab001 xyz 100
grp1 mc001 xyz 200
------------------------------
grp2 xyz 300
-------------------------------