Skip to main content
Everton Colling
Expert ⭐️⭐️⭐️⭐️
November 25, 2025

Hi ​@Marwen TALEB!

There are currently two units from different quantities that possess the alias "unitless". When using the try_get_unit UDF, if the function encounters more than one unit, it returns null due to the ambiguity.

That being said, you can add "Dimensionless" or "Dimensionless Ratio" as a 2nd argument (quantity) to try_get_unit to circumvent the ambiguity, and that will return the associated unit, as the catalog enforces unique aliases within a quantity, but not across quantities.

1 reply

Everton Colling
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
November 25, 2025

Hi ​@Marwen TALEB!

There are currently two units from different quantities that possess the alias "unitless". When using the try_get_unit UDF, if the function encounters more than one unit, it returns null due to the ambiguity.

That being said, you can add "Dimensionless" or "Dimensionless Ratio" as a 2nd argument (quantity) to try_get_unit to circumvent the ambiguity, and that will return the associated unit, as the catalog enforces unique aliases within a quantity, but not across quantities.