Substract two values with different types

Hi,
i have a short workflow with readed values from two sources. The values are stored in 2 generic variables. One source is an excel table with number values in the right format (value1). The other value (value2) is from a SAP table e.g. The value has a text format.
The workflow should calculate the difference between two values in another Excel table, but it doesn’t work, because i have to convert the text formatted value. But how ?

error

@manni1271

Hi,

Error you have pasted is about that you are trying to substract value from Double type value, which is wrong, you can substract only String type value.
I don’t know that values if you could share with us then we can help you create a solution.

Basically you should both values parse to Decimal type and then make calculations.