cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JamesSnaps
Advocate IV
Advocate IV

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
v-yuazh-msft
Community Support
Community Support

 

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
v-yuazh-msft
Community Support
Community Support

 

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

Works perfectly, thanks Alice.

Error DisplayError Display

 

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

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (3,110)