Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlikview associativity irrespective of datatypes

Hi everybody,

     I wanted know whether QlikView checks datatypes before associating two fields with same names from different tables?

I tried implementing one such scenario where I took 'id' filed of type 'int' in one table and varchar in another and, yet it associated the two fields. Will such associativity result in some wrong results or analysis?

Thanks in advance

Madhura

1 Solution

Accepted Solutions
swuehl
MVP
MVP

There are no data types in QlikView:

Data Types in QlikView

There are just dual values with text and numeric representations. You need to take care that your values read from your (different) sources are interpreted correctly (i.e. concerning key fields - in a semantically consistent manner).

Use the interpretation functions to do so (num#(), date#() etc).

View solution in original post

5 Replies
Gysbert_Wassenaar

No, it does not. Tables are associated on field names. If two tables have a field with the same name then that field is used to associate the tables. The contents of the fields in the tables is not considered.

A numeric value is not a string, so a record with a numeric value in field X in table A will never be related to a record in table B with a string value in field X.

But Qlikview will try to interpret any value. If it encounters '1234' in a varchar field and you have not explicitly told Qlikview to treat it as text then it will be converted into the number 1234.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert,

Yes, that is true but, would there be any scenarios where it affects the analysis on data. I cant think of a case where it will affect operations on data.

Rgards

Not applicable
Author

How to explicitly set datatypes of fields while fetching data from a database?

swuehl
MVP
MVP

There are no data types in QlikView:

Data Types in QlikView

There are just dual values with text and numeric representations. You need to take care that your values read from your (different) sources are interpreted correctly (i.e. concerning key fields - in a semantically consistent manner).

Use the interpretation functions to do so (num#(), date#() etc).

Not applicable
Author

Ok, yes I see that is one way out if my data model is containing fields with incorrect datatypes.

Thanks Swuehl.