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

Removing decimal points on calculated column

I have a Sharepoint list that has five numerical columns and then a final calculated column that totals the previous five. That column is set up using format 'number' and with the calculation:

=Round((Monday+Tuesday+Wednesday+Thursday+Friday),0)

However, when I try to pass this column through into Flow, I am getting the number with multiple decimal points after it. I was specifically trying to avoid this by using the 'round' fuction, but it doesn't seem to make any difference.

 

Any other way to pass this column's value through without the decimal points attached?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Removing decimal points on calculated column

 

Hi @JamesSnaps,

 

I have made a test on my side and the issue is confirmed on my side.

 

Please add an expression int() to calculated formate the column's value to int type.

 

I have made a test to create a calculated column named "Calculate" in the sharepoint list, and you could refer to screenshot below to create the flow:

Capture.PNG

 

The expression in the Compose as below:

 

int(items('Apply_to_each')?['Calculate'])

 

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Alice

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Removing decimal points on calculated column

 

Hi @JamesSnaps,

 

I have made a test on my side and the issue is confirmed on my side.

 

Please add an expression int() to calculated formate the column's value to int type.

 

I have made a test to create a calculated column named "Calculate" in the sharepoint list, and you could refer to screenshot below to create the flow:

Capture.PNG

 

The expression in the Compose as below:

 

int(items('Apply_to_each')?['Calculate'])

 

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Alice

View solution in original post

JamesSnaps
Level: Powered On

Re: Removing decimal points on calculated column

Works perfectly, thanks Alice.

bhrigu12
Level: Powered On

Re: Removing decimal points on calculated column

error display.jpgError Display

 

Even after writing the mentioned solution, i am getting an error display.... Can you help to overcome the error display???

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 Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (3,848)