I have a list of 13 part groups that I am trying to use an If/Then statement to tell me which ones have zero’s in them for the particular customer. What I am running into is it’ll read the ones until it finds a zero then display what’s it’s supposed but it doesn’t keep reading and finish of the list. Can an If/Then be made to do this, or no?
Example:
Demo=0 Trans=1 Services=0 Patriot=0
Should display: Demo Services Patriot Instead just it displays Demo.
case
when Demo1 = 0 then ‘Demo’
when Trans1 = 0 then ‘Trans’
when Service2 = 0 then ‘Services’
when Fours2 = 0 then ‘400’
when Patriot2 = 0 then ‘Patriot’
when KeyTags2 = 0 then ‘Key Tags’
when Decal2 = 0 then ‘Decal’
when Mirror2 = 0 then ‘Mirror’
when Slogan2 = 0 then ‘Slogan’
when Vehicle2 = 0 then ‘Vehicle’
when Consecu2 = 0 then ‘Consecu’
when Flour2 = 0 then ‘Flour’
when Sun2 = 0 then ‘Sun’
else ‘’
end
so change this (case when SubQuery2.Part_RefCategory = ‘Demo’ then ‘1’ else ‘0’ end) to (case when SubQuery2.Part_RefCategory = ‘Demo’ then ‘0’ else ‘’ end)
Then in a serpate calulated filed do something like demo1+trans1+, etc, correct?
That error would come from your calculated field being set to Int instead of String. I thought you were trying to go from 0s and 1s to the string format?