Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Code | class | amount |
---|---|---|
AC | Loss | 12 |
BC | Gain | 25 |
CC | Tenure | 56 |
how to write script for code,class dimensions for calculating measure Loss Ratio.
Let say to calculate Loss Ratio the condition is it should take while loading in script.
Code='AC','CC' &Class='Loss','Tenure' .how to write code in edit script
Do you mean like below:
LOAD
*
Resident TableName
where Match(Code,'AC','CC') and Match(class,'Loss','Tenure');
Hi,
Write
If(wildmatch(code,'AC','CC') AND wildmatch(Class,'Loss'),Tenure) as NewTenure
Regards,
Do you mean like below:
LOAD
*
Resident TableName
where Match(Code,'AC','CC') and Match(class,'Loss','Tenure');
Hi,
Whats your expected output? is it 68?
Regards,
Ajay
Thank for your response working on real data if it works I will close discussion