2 Replies Latest reply: Sep 21, 2017 9:40 AM by Robert de Frel RSS

    Color by expression

    Robert de Frel

      Hi guys,


      I'm very new to Qliksense and i'm playing around with some data.


      I've created a set analysis to only look at Man & Woman. (It's in dutch)


      avg({$<Persoonskenmerken={'Man', 'Vrouw' }>}[Gemiddeld inkomen])


      Now I want to color both "Man" and "Vrouw" by a different color, I've tried to use color by expression using:


      if(Persoonskenmerken = 'Vrouw', Red())


      But I can't create the second if statement without getting an error.


      Could you help me out  .