Skip to main content

I want to create a dimension called school location which has the value "Barton" if the value of a dimension called servicename includes the word "Barton" and has the value of "Joplin" if the value of servicename includes the word "Joplin" etc.

 

I created calculated fields for each school location as follows (see Barton example below)

 

How do I use true/false dimensions in a logic calculation?

I then tried to create a logic calculation as follows (see below_

 

Screen+Shot+2016-10-31+at+2.04.09+PM.png

However, the calculation didn't work. I got this message:

 

Screen+Shot+2016-10-31+at+2.04.55+PM.png

 

What did I do wrong? Thanks for your help!

7 件の回答
  1. 2016年11月2日 0:55

    Hey Amelia,

     

    I don't know if you've tried this method yet, but it appears that you are taking this as a two step process when you can simplify it to a one step with the below calculation.

     

    IF CONTAINS([servicename], 'Barton') THEN 'Barton'

    ELSEIF CONTAINS([servicename], 'Joplin') THEN 'Joplin'

    ELSEIF CONTAINS([servicename], 'Ogsleby') THEN 'Ogsleby'

    ELSEIF CONTAINS([servicename], 'Westcott') THEN 'Westcott'

    ELSEIF CONTAINS([servicename], 'Perspectives') THEN 'Perspectives'

    ELSE 'School Location Unknown'

    END

     

    If I understood your use case correctly, the above solution may be able to help you out.

     

    KJ

0/9000