Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If statment formulas on scatter graph

Hi all,


I have created a few maps using google maps and scatter graphs with coloured pins using following formula:

If(count ([Asset.Serial #])=0, Red(), if (count ([Asset.Serial #])=1 , Yellow(),if (count ([Asset.Serial #])=2, Black() , if (count ([Asset.Serial #])=3 ,Black(), )))

Which works fine.

Howerver I now want to do the same but for a field value instead of a count and I cant seem to get the below to work:

If (Fieldvalue ([Activity.Type])='Demonstration', Red(),)

Many thanks

Paul

1 Solution

Accepted Solutions
bbi_mba_76
Partner - Specialist
Partner - Specialist

Hi,

did you try with

If ( [Activity.Type]='Demonstration', Red())

or using the pick/match function

pick(match( [Activity.Type],'Demonstration'), Red()....

View solution in original post

1 Reply
bbi_mba_76
Partner - Specialist
Partner - Specialist

Hi,

did you try with

If ( [Activity.Type]='Demonstration', Red())

or using the pick/match function

pick(match( [Activity.Type],'Demonstration'), Red()....