Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all
i have one field FIELD whose values are DS and IS, i want to write expression of sales
sum({<FIELD = {'DS'}>} Sales= this give me sales w.r.t DS
sum({<FIELD = {'IS'}>}Sales = this give me sales w.r.t IS
i want to write it in single expression like if i select DS than it will me DS sales else IS sales in single expression....
pls help.
Hi use if condition
If (FIELD = 'DS' ,sum({<FIELD = {'DS'}>} Sales),
If (FIELD = 'IS' ,sum({<FIELD = {'IS'}>} Sales)))
Thanks
i want to write it in set analysis..
Set a variable like:
vField =if(GetSelectedCount(Field)>0,concat(GetFieldSelections(Field),','),'IS')
then use the Expression:
sum({<Field={"$(vField)"}>} Sales)
Maybe like attached? Similar to above posts
so you are asking you have a list box if you select DS it need to show sales WRT DS right
if (getfieldselections(fields)='DS',sum({<FIELD = {'DS'}>} Sales,sum({<FIELD = {'IS'}>}Sales)