Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to replace ID with membername at a time?


Hi,

I have ID and membername. whereever there is ID I have to show membername in straight table . I am aware it will get by using

If(ID=1, 'XX',ID) as ID

I have to replace 300 rows with membername instaed of ID.

Is there any way I can do this with script at a time or with expression?

Thanks.

17 Replies
ngulliver
Partner - Specialist III
Partner - Specialist III

Hi, Amelia.

have you seen Steve's blog on using ApplyMap.

It may give you a better idea of how to use it to get what you want.

http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/

Regards,

Neil

ngulliver
Partner - Specialist III
Partner - Specialist III

There is an ApplyMap example on the forum posted recently:

Brief Explanation about Apply map

Regards,

Neil

Not applicable
Author

Thanks and I will explain my problem clearly.

I have Three tables:

Table A has fields ID and others...

Table B has fiellds PID, MemberName and others....

Table C has fields  BatchID and others....

so, now I need to show in two striaght tables.

One striaght table should have MemberName instead of ID

Another straight table should have MemberName instead of BatchID.

Please can help me.


juleshartley
Specialist
Specialist

Where is the relationship between ID, PID and BatchID?

Not applicable
Author

there is direct relation ship between Table A and Table B. But there is no direct relation between Table B and Table C. is that the problem?

juleshartley
Specialist
Specialist


You need to be able to relate BatchID to either PID or ID, otherwise how can you associate BatchID to Membername?

Not applicable
Author

Yes I did attached but it is showing values incorrect count of records when I compared from database.

magavi_framsteg
Partner - Creator III
Partner - Creator III

Hi Amelia.

Do you know about "QlikView and associative data modelling", in which common field names are automatically associated?

It is of great use if you have for example TableX.ID and TableY.ID | TableY.Membername.

They will get linked automatically, and you can show the Membernames in a table. Or a graph should you like.

You could accomplish this in several ways where JOINS and MAPS are two examples.

Or by plain field association using facts and dimensions.

Hope it helps