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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Swathi
Creator
Creator

need to change bubble colour in scatter plot.

i have created scatter plot to show qty and cm of current and previous year for all customers

bubble - if(tkt_Year= $(vYear),customer& ' '& $(vYear), if(tkt_Year= $(vpreYear),customer & ' '& $(vpreYear)))

X axis- Sum({<Period,[MonthYear]={ ">=$(=(vMinYearMonth) )<=$(=(vMaxYearMonth) )" }>+ <Period,[MonthYear]={ ">=$(=(vLimitPrevious_Min) )<=$(=(vLimitPrevious_Max) )" }>} [cm])

Y Axis- Sum({<Period,[MonthYear]={ ">=$(=(vMinYearMonth) )<=$(=(vMaxYearMonth) )" }>+ <Period,[MonthYear]={ ">=$(=(vLimitPrevious_Min) )<=$(=(vLimitPrevious_Max) )" }>} qty)

and colur coding for bubble is

if(tkt_Year = $(vYear), Green(), // Green for the current year if(tkt_Year = $(vpreYear), RGB(0, 191, 255) // Blue for the previous year ) )

Now, i need everything should be same and add on for thesese is need to change  bubble colour of current year wherecm2 is less compare with  last year. it should littl echnage of colour , now current year colour is green , if it is leess, it should green+some other or anything to identify the customers by seeing bubble, that customer have less cm2 compare with last year, 

Swathi_0-1704283389738.png

 

Kindly help ,me to do that little urgent

 

Labels (2)
1 Reply
F_B
Specialist II
Specialist II

Hi @Swathi ,

this should do the job:

 

if(tkt_Year = $(vYear),
if(Sum({<tkt_Year={$(vYear)}>}[cm2]) < Sum({<tkt_Year={$(vpreYear)}>}[cm2]),
// If current year CM is less than previous year, modify green color
RGB(0, 150, 0), // Darker green to indicate decrease
Green() // Regular green for current year
),
if(tkt_Year = $(vpreYear),
RGB(0, 191, 255) // Blue for the previous year
)
)

 

Have a nice day