Custom metrics not taking appropriate data types in Databricks

I have created a metric on 2 columns present in Databricks.
Metric is basically giving me floating number, but it is not taking it as a number and is not able to generate a line chart.

Whereas same function is working properly on Snowflake.

I have setup the columns data types also but still not producing the desired result.

Tried using integer converter function also but still no result