Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
I am trying to create an IF Statement
if (StatusDesc = 'BI: BAU - PRIORITY',1),
if (StatusDesc = 'BI: DEV - PRIORITY',2),
if (StatusDesc = 'BI: SALES - PRIORITY',3),0 as PriorityStatus,
what am i doing wrong?
Thanks All
Adil
try this:
if (StatusDesc = 'BI: BAU - PRIORITY',1,
if (StatusDesc = 'BI: DEV - PRIORITY',2,
if (StatusDesc = 'BI: SALES - PRIORITY',3))) as PriorityStatus,
try this:
if (StatusDesc = 'BI: BAU - PRIORITY',1,
if (StatusDesc = 'BI: DEV - PRIORITY',2,
if (StatusDesc = 'BI: SALES - PRIORITY',3))) as PriorityStatus,
Thanks Balraj for quick and correct response!
Try any one of this method,
Pick(Match(StatusDesc, 'BI: BAU - PRIORITY','BI: DEV - PRIORITY', 'BI: SALES - PRIORITY')+1,1,2,3,0) as PriorityStatus,
If (StatusDesc = 'BI: BAU - PRIORITY',1,
If (StatusDesc = 'BI: DEV - PRIORITY',2,
If (StatusDesc = 'BI: SALES - PRIORITY',3,0))) as PriorityStatus,
if (StatusDesc = 'BI: BAU - PRIORITY',1,
if (StatusDesc = 'BI: DEV - PRIORITY',2,
if (StatusDesc = 'BI: SALES - PRIORITY',3,0
)))as PriorityStatus,
Thanks for the help
Thanks for the help