Quantcast
Channel: Mockaroo Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 2665

Randomly picking values from a dataset and then lookup other values based on this field

$
0
0

Hi,
I am trying to generate a set of users and assign them to randomly looked up organizations.
To do so I uploaded a dataset with a number of orgs identitfied by id's.
The id's are read by the dataset column type.
When previewing this. The values are read and assigned.

Then I'll try to calculate department in a formula where I lookup the name of the organization by using a formula.
from_dataset('Orgs', 'org_name', org_id: field("user_org_id"))

when I now preview I get:
1,Melissa,Wood,mwood0@google.com,2,error: Could not access blank value: Use || to provide a default value for blank fields. Example: (my_field || 0) + 1

It looks like as if the field user_org_id (the randomly read org id from the data set) is not available at this moment.
The field department is of course AFTER the field user_org_id.
Any ideas?
Thanks


Viewing all articles
Browse latest Browse all 2665

Trending Articles