Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can any one show me how to colour the scatter points on this chart based on the following rules
1. If points are in top right quadrant then colour Green
2. If points are in bottom right then colour Red
3. If points are in bottom left then colour Orange
4. If points are in top left then colour blue
Bare in mind the reference points are set relative to the percentile so will move as and when new data is added.
Ok what about creating two columns in the script on wontaining Sales for current year and another for previous year?
Unfortunately the sales will always come in in one column. i.e. a ledger
Can it not be done without using set analysis
In the script you can use a preceding load:
LET CY=Num#(Year(Today()));
LOAD CustomerGroupName, Date,
if(Num#(Trim([Year]))=$(CY), Sales) as Sales_CY,if(Year=$(CY)-1,Sales) as Sales_PY;
LOAD * Inline [
CustomerGroupName, Date, Sales, Year
....
in this way you read a table with the following columns
CustomerGroupName, Date, Sales, Year
and you get in qlik a table with the following columns
CustomerGroupName, Date, Sales_CY, Sales_PY