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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Chart reacting wrong to certain selection

Hi,

I've been using QlikView for a few weeks now, and I've never had this problem: The chart just gives me 1.0 as a result after selecting data from a certain field, for every dimension part. Could it be that it stands for "true"?

Greetings,

Lucas

PS: I imported my data as a Crosstable, and the possible selections from one field is 1, 2, 3 and 4, the other field a certain location.

1 Solution

Accepted Solutions
Not applicable
Author

Well I've been trying a few things, and I tried joining the two tables first, and then making a Crosstable out of the (now one) joined tables, and ta-daa, it worked! I still had to manually define the LOAD order, but that was all!

Thanks for your help,

Lucas

View solution in original post

12 Replies
Not applicable
Author

Upload a sample file.

It is possible depending on your expression and what you are asking based on your dataset. Only way to confirm is to make available a data sample and your expression in the chart

Cheers,

Byron

Not applicable
Author

Here is the .qvw

I only have a Personal Edition, so if you could just tell me what to do I would be happy

Greetings,

Lucas

Not applicable
Author

What fields are selecting that is resulting in the 1.0 being populated throughout the chart?

And yes, I will tell you what it is that I did to figure it out once I do

Cheers,

Byron

Not applicable
Author

Just "Priorität" and maybe Location, I'm not 100% sure.

Greetings,

Lucas

Anonymous
Not applicable
Author

Lucas

You have the field Data in both you fact table which becomes part of the synthetic key along with Monat that joins them.

How about renaming the Data field in one of your table to remove this filed being part of the join.  This wiill also remove the synthetic key.

Best Regards,     Bill

Not applicable
Author

Hi,

This kinda works, but then I have to make 2 separate charts. One for Data1 and one for Data2.

Greetings,

Lucas

Not applicable
Author

Hi Lucas,

Try concatenating both the tables.

Hope this helps!

--

Vinoth

Not applicable
Author

Doesn't look like Concatenate() works with Crosstables, but thanks anyway for the reply!

Greetings,

Lucas

sudeepkm
Specialist III
Specialist III

May be you concatenate at first on the raw data from the files then do a cross table on the table using resident load.

The script would be something like below.

//Store data from two files in to dat table, since the fields are same it will be auto concatenate

dat:

LOAD id,

     data,

     JAN,

     FEB,

     MAR

FROM

Book1.xlsx

(ooxml, embedded labels, table is Sheet1);

LOAD id,

     data,

     JAN,

     FEB,

     MAR

FROM

Book2.xlsx

(ooxml, embedded labels, table is Sheet1);

// create cross table by doing resident load

crsdat:

CrossTable(mon, mondat, 2)

LOAD id,

     data,

     JAN,

     FEB,

     MAR

Resident dat;

// drop the main table

drop Table dat;