Hi @Marini83 ,
Do you want to extract the Number value from a Text string?
Based on the needs that you mentioned, I think the Substitute function could achieve your needs. I have made a test on my side, please take a try with the following workaround:


Set the OnSelect property of the "Initialize" button to following:
UpdateContext({ContextVar1: "P001"})
Set the OnSelect proeprty of the "Extract Number" button to following:
UpdateContext({ContextVar1: Substitute(ContextVar1, "P","")}) /* <-- On your side, you should take a try with this formula to achieve your needs */
Set the Text property of the Label to following:
"Current Context Variable value: " & ContextVar1
Please check the following GIF screenshot for more details:
Best regards,