cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ludwig
Level: Powered On

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 Team
Community Support Team

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

1 REPLY 1
Highlighted
Community Support Team
Community Support Team

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

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 165 members 4,519 guests
Please welcome our newest community members: