randomValue = Normal Distribution mean 1, fx = this * referenceValue
This gives “error: FormattedValue can’t be coerced into BigDecimal”
I also tried using randomValue = Normal Distribution, fx = this * from_dataset(“MyDataset”, “varlue”, id: field(“MyId”)
This gives the error about “could not access blank value”, which I couldn’t workaround
It seems like the Dataset code is failing to recognize that the “value” column in my dataset are numeric values, and I don’t see a function to convert a string to a numeric value.
There’s a bit of a trick to this that I could improve. Numeric values in datasets are returned as a Mockaroo internal type called FormattedValue. You can access the underlying BigDecimal value using the “raw” method. For example: