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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display values on a scatter chart without aggregating and hard-coded filter

Doubt 1 :In the attached qvw, I created a qvw. Here I want to display the dots at each record, that is one dot for one record. I have used the dimension as bmc_desc, so

the final dots are aggregated at the bmc level. I have used expressions as sum(incremental_sales) and sum(imcremental profit), but I want to show the

incremental sales and incremental_profit of each dot. But nothing is displayed when I use just "incremental_sales" as the expression.

Please suggest how to display dots at each record level and then all records belonging to a single bmc have one color.

data_contextsub_category_codesub_category_descfamily_codeweek_idweek_numpromo_salesbaseline_salesincremental_salesincremental_profitdiscountavg_nbr_of_basketsbaseline_nbr_of_basketsbasket_size_impactincremental_trafficnet_basket_impactquadrantweekly_amtbmc_descavg_basket_sizebaseline_basket_sizebrandvendor_namepromo_codepromo_start_datepromo_end_datesupplementpresstvradiosmart_shopperinstore


























































0
-Super-AllG120201RICE118522011464618788.7916913.97-468.747-2595.420.243324301223.8628-155.8777.1371912562.2648079.1KIDS CEREALS615.2133771.083637KELLOGG'S       Kellogg Company SA (Pty) LtdNULL00:00.000:00.0100
I-Super-AllG120201RICE118522011474715233.5515495.99-2162.55-3633.040.243466246.6667210.244-84.94136.422675856.34946550.45KIDS CEREALS651.0967736.037626KELLOGG'S       Kellogg Company SA (Pty) LtdNULL00:00.000:00.0100

Doubt 2 : Is there a way to hard-code the filter. For example in the qvw attached, you can see a filter DAta context which has three values. Is there a way to remove that list box and by default set the filter condition to All


22 Replies
Not applicable
Author

thanks for the reply.

Yeah I will follow that.

So, here in the expression why can't I just use incremental_sales? Should I always use sum(sales) ?

I tried with just sales but did not get output

Not applicable
Author

Expression needs group functions. Check out this example.

Kiran

Not applicable
Author

Adding to the doubts on dimensions : Does dimension have differnet meaning in scatter chart and bar chart?

As you said, combination of dimensions in scatter chart gives us the dots on the chart. How does dimension in the bar chart change things?

Not applicable
Author

They mean the same in both the cases. No. of rows for any chart is the same as a straight table. Only the visualization is different.

Kiran.

Not applicable
Author

Just to confirm. Hardcoding the filter condition :

I am using set analysis sum({<data-context="All-All'>} incremental_sales) to limit the search result by default to all-all. Am I correct?

doubt 2:Is there a way to restrict the values in the filter/list box? Do we need to add expressions there as well or is there any other wya?

Not applicable
Author

kiran,

When I give around 4 column names(the combination of which uniquely dtermines the row) the chart is showing dots at that level( I checked for only one value and that was right, I need to do testing on more values).

I do not know how to set the legend, I am not mentioning anywhere that bmc_desc has to be the legend or data_context has to be the legend.

I want the legend as bmc_desc but for some slections i see bmc)_desc as the legend and for some I see data_context as the legend. Is there a way to have just one fixed field as the legend?

thanks!

Not applicable
Author

data_contextsub_category_codesub_category_descfamily_codepromo_codeweek_idpromo_salesbaseline_salesbmc_descincremental_sales
Inland-Hyper-AllG120201CEREALS104110413.942.318a5.82
Inland-Hyper-AllG120201CEREALS104123051.825.237a6.19
Inland-Hyper-AllG120201CEREALS10577313101.6764.511a59.7
Inland-Hyper-AllG120201CEREALS10577414100.7912.312b21.38
Inland-Hyper-AllG120201CEREALS10577535121.55722.813b41.62










I am writing this again, to be clear with teh requirements . I want to represent every row as a dot in the scatter chart and all these shoud be grouped by bmc_desc. I.e there should be 5 dots as per the above example two belonging to B(one color) and 3 belong to A ( another color).

Attached is my qvw file. I mentioned bmc_desc, sub_cat_desc, data_context , and promo_code as the dimensions. (AS the combination is a unique in that table, so I chose these 4 dimensions to represent each row.

I m not sure how to set the legend, I want to see bmc_desc as the legend and under that a and b and the colors they represent, I could not find a place to set the legend properties.

Attached is the qvw

MayilVahanan

HI,

     If you want to display color based on the bmc_desc oly ?? If so, check the attached file. If you use dimension as in Group1 , you will use GetCurrentField(grupname) in window title..

If you used dimension as Groupt1, based on bmc_desc values, color appear in chart for each dimension in group..

Hope it helps..

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

As I told you earlier, I use free edition. So, I can't see the solution.

But I think you told me this before, but the problem with that Group thing is that, When I select bmc_desc, all the records are aggregated at the bmc_desc level i.e for bmc_desc = a if there are 4 records ,, all the 4 records are summed up for that bmc..but I want to show all those 4 articles as 4 dots on the chart.

Thanks!

MayilVahanan

ok . You want to see color based on bmc_desc values?

if so, used in expression background

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.