Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
HI below is the 'IF' statement that I want to replace with 'Set expression'
Please note this expression is used inside the column expression of a Chart.
If(
$(v_Rec_GM)>0 and ([Rec. Sales Price])>= $(vLowcomp), 'G2',
If( $(v_Rec_GM)<=0 and ([Rec. Sales Price])>= $(vLowcomp), 'G1',null)
)
Here I want to replace this IF statement with a Set expression.
in load script:
If(
$(v_Rec_GM)>0 and ([Rec. Sales Price])>= $(vLowcomp), 'G2',
If( $(v_Rec_GM)<=0 and ([Rec. Sales Price])>= $(vLowcomp), 'G1',null) )AS Flag,
expression with set analysis:
sum({<Flag = {'Yourvalue'}>}Salesprice)
we are to change only in set expression. in the load script, we can not do any modification.