Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
datanibbler
Champion
Champion

AutoNumber() as Key

Hi,

I am currently working on an app which is going to be quite big as there is a lot of data.

I thus tried to make it somewhat less resource-heavy by using the AutoNumber() function to replace

an alphanumeric key by a numeric.

To check if the linking works, I kept the original key in both tables and renamed it so that wouldn't be linked.

I then used

>> AutoNumber([keyfield], 'Key') <<

in both the tables.

<=> From the look of it, it seems that quite some keyfields that actually exist in both tables are not linked anymore.

Is there anything I have overlooked?

Thanks a lot!

Best regards,

DataNibbler

1 Solution

Accepted Solutions
datanibbler
Champion
Champion
Author

Okay.

Thank you all for your help! It does work, after all. It's just that many values cannot be matched - and aren't supposed to. I didn't think about that the first time round. Now I started from the "smaller" side where all items should have a match.

I tested it on a dozen samples and in those cases where the link worked before, it works with AutoNumber(), too. So I'll keep that.

Best regards,

DataNibbler

View solution in original post

6 Replies
pokassov
Specialist
Specialist

Hi

You have to do it in one document during reload

datanibbler
Champion
Champion
Author

Hi Sergej,

what do you mean, in one document?

luciancotea
Specialist
Specialist

Try Autonumberhash128()

pokassov
Specialist
Specialist

In one app. If you make key using autonumber for first table in one app and for second table in another. To store data in to qvd file for example and then use both qvd in app, then autonumber will not work correctly.

datanibbler
Champion
Champion
Author

Ah, now I understand.

Well, they are in one app all right.

I'm not quite sure about that as the linking was less than perfect before ...

I'll do a test now, writing down a dozen or so items which are linked using the alphanumeric key, then switch to the numeric and test those same items.

datanibbler
Champion
Champion
Author

Okay.

Thank you all for your help! It does work, after all. It's just that many values cannot be matched - and aren't supposed to. I didn't think about that the first time round. Now I started from the "smaller" side where all items should have a match.

I tested it on a dozen samples and in those cases where the link worked before, it works with AutoNumber(), too. So I'll keep that.

Best regards,

DataNibbler