I am having trouble with the LEFT function in a CASE statement. It works as expected outside the CASE statement.
When I use this beast mode:
LEFT(`Material`, 4)
I get the first 4 characters in the Material column.
When I use this Beast mode
(CASE when `Process`= 'Lathe' then
'Lathe'
/*LEFT(`Material`, 4)*/
end)
I get several items in the column with 'Lathe'
But when I use this beast mode
(CASE when `Process`= 'Lathe' then
/*'Lathe'*/
LEFT(`Material`, 4)
end)
I don't get anything in that column
I was careful to pick 'material' from the dataset fields in all cases.
Any ideas?