I am using a Select Function to retrieve an initail value in my form, however, I want the field to remain as a Number type. I am getting an error unless I change the field type. Is there anything I can add to the expression to allow me to use the Select Function and maintain the field type as Number?
Thanks.
Solved! Go to Solution.
The problem is that SELECT() produces a List result, but the column value should be a singular value. To fix, either wrap SELECT() in ANY():
ANY(
SELECT(
Product_Master_File[Length (m)],
([Product Code] = [_THISROW].[Product Code])
)
)
Or replace SELECT() with LOOKUP():
LOOKUP(
[_THISROW].[Product Code],
"Product_Master_File",
"Product Code",
"Length (m)"
)
Both are equivalent.
What is the expression? What is the exact text of the error message?
Expression: Select(Product_Master_File[Length (m)],[Product Code]=[_ThisRow].[Product Code])
Error: Column Name โLength (m)โ in Schema โOperations_Master_Check_Schemaโ of Column Type โNumberโ has an invalid โInitial Valueโ of โ=Select(Product_Master_File[Length (m)],[Product Code]=[_ThisRow].[Product Code])โ. The type of the Initial Value does not match the column type.
The [Length (m)] colum in the Product_Master_File is of Type Enum as it is part of a number of dependent dropdowns. Could this be this issue i.e. it is not of Type Number?
The problem is that SELECT() produces a List result, but the column value should be a singular value. To fix, either wrap SELECT() in ANY():
ANY(
SELECT(
Product_Master_File[Length (m)],
([Product Code] = [_THISROW].[Product Code])
)
)
Or replace SELECT() with LOOKUP():
LOOKUP(
[_THISROW].[Product Code],
"Product_Master_File",
"Product Code",
"Length (m)"
)
Both are equivalent.
Great, thank you @Steve
User | Count |
---|---|
39 | |
25 | |
22 | |
20 | |
15 |