Tabulating variables across record types

Discussions about tabulating data in the designer or in batch mode
Post Reply
kakinyim
Posts: 42
Joined: January 16th, 2012, 6:38 am
Location: Remote/Virtual

Tabulating variables across record types

Post by kakinyim »

I need to run a table that uses variables from different record types such as gender in record type A and education level completed in record type B. How can CSPro handle this? The biggest problem is to select the right 'Unit Tallied'. I have tried the working dictionary but is not working.

Someone help me.....

Mutua
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Tabulating variables across record types

Post by Gregory Martin »

To do this you can either use the working storage dictionary or you can use dictionary relations.

1) Working storage dictionary: In the tab logic you would assign either the sex or education level completed values to a value in the working storage dictionary. For example, if you drag your sex variable to the table, your logic might be something like:
WORKING_STORAGE_EDUCATION = EDUCATION(curocc(RECORD_A));
2) Dictionary relations: This is an easier way to handle this problem. While editing your dictionary, select Edit -> Relations. Then you can create a relationship between record A and record B, linking them by an item or simply by the occurrence number. Then you can drag both variables to the table. See attached for an example of this.
Attachments
linkRecords.zip
(3.91 KiB) Downloaded 573 times
kakinyim
Posts: 42
Joined: January 16th, 2012, 6:38 am
Location: Remote/Virtual

Re: Tabulating variables across record types

Post by kakinyim »

Thank you Greg, I have tested the two approaches and all are working.

Long live CSPro.
telimoye
Posts: 2
Joined: January 3rd, 2014, 1:58 am

Re: Tabulating variables across record types

Post by telimoye »

Thanks Greg for the file, it is working
Post Reply