Creating a duplicate dataset with different column datatypes

You might find it easier to put this expression binding on your data property, after installing my latest Simulation Aids module (assuming that last bug is fixed):

unionAll(
	forEach(
		columnsOf({Root container.path.to.custom.prop}),
		asList(
			it()[0],
			if(
				idx() < 8,
				asList('I', 'str',  'str', 'I', 'str', 'str', 'str', 'str')[idx()],
				'F'
			)
		)
	),
	{Root container.path.to.custom.prop}
)

:grin:

{ The unionAll function is really just a glorified wrapper around the DatasetBuilder class. }

1 Like