cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

LUIS - Amount conversion with thousand separator and decimal places

Hi,

 

I get an email with an amount value in this format:

1,234.56

In the email body there are other informations. Therefore, I use LUIS to extract the value and get an entity value in the following form:

1 , 234 . 56

My question is how can I get rid of the blank values before and after the comma and the dot decimal separator?

 

I already tried with variables, expressions and other kind of conversions but do not know how to get a value of 1,234.56 that I can use in subsequent processes steps.

 

Best regards,

 

Ludwig

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: LUIS - Amount conversion with thousand separator and decimal places

Hi @ ludwig,

 

Do you want to get rid of the blank values before and after the comma and the dot decimal separator of a value such as “1 , 234 . 56”

 

I have made a test on my side, you could refer to screenshot below to use the workflow definition language to achieve your needs:

2.png

 

The expression in the Compose 2 would get rid of the blank values before and after the comma separator, the expression as below:

replace(outputs('Compose'),' , ', ',')

 

The expression in the Compose 3 would get rid of the blank values before and after the dot decimal separator, the expression as below:

replace(outputs('Compose_2'),' . ', '.')

 

The flow would run successfully as below:

 3.png

You could refer to link below to learn more about the workflow definition language:

https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

 

 

Regards,
Alice Zhang

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: LUIS - Amount conversion with thousand separator and decimal places

Hi @ ludwig,

 

Do you want to get rid of the blank values before and after the comma and the dot decimal separator of a value such as “1 , 234 . 56”

 

I have made a test on my side, you could refer to screenshot below to use the workflow definition language to achieve your needs:

2.png

 

The expression in the Compose 2 would get rid of the blank values before and after the comma separator, the expression as below:

replace(outputs('Compose'),' , ', ',')

 

The expression in the Compose 3 would get rid of the blank values before and after the dot decimal separator, the expression as below:

replace(outputs('Compose_2'),' . ', '.')

 

The flow would run successfully as below:

 3.png

You could refer to link below to learn more about the workflow definition language:

https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

 

 

Regards,
Alice Zhang

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (8,239)