Forum Discussion
delia
8 years agoFrequent Visitor
switch function
Hi, I have a switch function as follows: EstDesc = Switch ( TRUE (), WorkRequest[CurrentEstimate] = 97,"Small", WorkRequest[CurrentEstimate] = 497,"Medium", WorkRequest[CurrentEstimate] = 997,...
- 8 years ago
Hi delia,
That's a limitation of Direct Query. Please try it like below.
EstDesc = SWITCH ( TRUE (), WorkRequest[CurrentEstimate] = 97, "Small", WorkRequest[CurrentEstimate] = 497, "Medium", WorkRequest[CurrentEstimate] = 997, "Large", WorkRequest[CurrentEstimate] = 1997, "X-Large", "" & WorkRequest[CurrentEstimate] )Best Regards,
Dale
v-jiascu-msft
8 years agoMicrosoft Employee
Hi delia,
That's a limitation of Direct Query. Please try it like below.
EstDesc =
SWITCH (
TRUE (),
WorkRequest[CurrentEstimate] = 97, "Small",
WorkRequest[CurrentEstimate] = 497, "Medium",
WorkRequest[CurrentEstimate] = 997, "Large",
WorkRequest[CurrentEstimate] = 1997, "X-Large",
"" & WorkRequest[CurrentEstimate]
)
Best Regards,
Dale
delia
8 years agoFrequent Visitor
Awesome, that did it! Thanks Dale!!! :)