cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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

View solution in original post

1 REPLY 1
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

View solution in original post

Helpful resources

Announcements
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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,655)