Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikmark1990
Contributor III
Contributor III

Duplicate values in scatterplot are added up instead of plotted seperately

I am new to QLikView and started to analyse the Iris dataset. I also made some calculations on the dataset and made a table of which the first 30 rows are shown.

          

IdPetalLengthCmPetalWidthCmPetalRatioPetalMultipliedSepalLengthCmSepalWidthCmSepalRatioSepalMultipliedSpecies
11,40,27,000,285,13,51,4617,85Iris-setosa
21,40,27,000,284,931,6314,7Iris-setosa
31,30,26,500,264,73,21,4715,04Iris-setosa
41,50,27,500,34,63,11,4814,26Iris-setosa
51,40,27,000,2853,61,3918Iris-setosa
61,70,44,250,685,43,91,3821,06Iris-setosa
71,40,34,670,424,63,41,3515,64Iris-setosa
81,50,27,500,353,41,4717Iris-setosa
91,40,27,000,284,42,91,5212,76Iris-setosa
101,50,115,000,154,93,11,5815,19Iris-setosa
111,50,27,500,35,43,71,4619,98Iris-setosa
121,60,28,000,324,83,41,4116,32Iris-setosa
131,40,114,000,144,831,6014,4Iris-setosa
141,10,111,000,114,331,4312,9Iris-setosa
151,20,26,000,245,841,4523,2Iris-setosa
161,50,43,750,65,74,41,3025,08Iris-setosa
171,30,43,250,525,43,91,3821,06Iris-setosa
181,40,34,670,425,13,51,4617,85Iris-setosa
191,70,35,670,515,73,81,5021,66Iris-setosa
201,50,35,000,455,13,81,3419,38Iris-setosa
211,70,28,500,345,43,41,5918,36Iris-setosa
221,50,43,750,65,13,71,3818,87Iris-setosa
2310,25,000,24,63,61,2816,56Iris-setosa
241,70,53,400,855,13,31,5516,83Iris-setosa
251,90,29,500,384,83,41,4116,32Iris-setosa
261,60,28,000,32531,6715Iris-setosa
271,60,44,000,6453,41,4717Iris-setosa
281,50,27,500,35,23,51,4918,2Iris-setosa
291,40,27,000,285,23,41,5317,68Iris-setosa

I made a scatterplot of PetalRatio against SepalRatio and my problem is that double values are added up and plotted incorrectly.

scatterplot.png

So when I select the value that's located at x = 4,7 and y = 45 I get this table :

          

IdPetalLengthCmPetalWidthCmPetalRatioPetalMultipliedSepalLengthCmSepalWidthCmSepalRatioSepalMultipliedSpecies
101,50,115,000,154,93,11,5815,19Iris-setosa
351,50,115,000,154,93,11,5815,19Iris-setosa
381,50,115,000,154,93,11,5815,19

Iris-setosa

\

The correct values to plot are x = 1,58 and y = 15,00 but they are plotted at a three as higher value. This only happen if a value is not unique as shown in the table above.

How can a plot this 3 values correctly?

2 Replies
arvind_patil
Partner - Specialist III
Partner - Specialist III

Hi Mark,

Add Distinct Keyword In your load Script hence you will get unique values.

Load Distinct

Field1,

.

.

From<Path>

Thanks,

Arvind Patil

qlikmark1990
Contributor III
Contributor III
Author

Thank you for your answer. Unfortunately it doesn't change anything (I reloaded the script). The script that I currently have is:

SET ThousandSep='.';

SET DecimalSep=',';

SET MoneyThousandSep='.';

SET MoneyDecimalSep=',';

SET MoneyFormat='€ #.##0,00;€ -#.##0,00';

SET TimeFormat='hh:mm:ss';

SET DateFormat='D-M-YYYY';

SET TimestampFormat='D-M-YYYY hh:mm:ss[.fff]';

SET FirstWeekDay=0;

SET BrokenWeeks=0;

SET ReferenceDay=4;

SET FirstMonthOfYear=1;

SET CollationLocale='nl-NL';

SET MonthNames='jan;feb;mrt;apr;mei;jun;jul;aug;sep;okt;nov;dec';

SET LongMonthNames='januari;februari;maart;april;mei;juni;juli;augustus;september;oktober;november;december';

SET DayNames='ma;di;wo;do;vr;za;zo';

SET LongDayNames='maandag;dinsdag;woensdag;donderdag;vrijdag;zaterdag;zondag';

LOAD Distinct Id, SepalLengthCm, SepalWidthCm, PetalLengthCm, PetalWidthCm,

SepalLengthCm / SepalWidthCm as SepalRatio, PetalLengthCm / PetalWidthCm as PetalRatio,

SepalLengthCm * SepalWidthCm as SepalMultiplied, PetalLengthCm * PetalWidthCm as PetalMultiplied, SpecieId

FROM

(ooxml, embedded labels);

Directory;

LOAD Distinct SpecieId, Species

FROM [Iris species.xlsx] (ooxml, embedded labels, table is Iris);