I have a calculated field in a SharePoint list that calculates the days between two dates. I added this field into a flow email, but it adds 0's to the number like this. How would I go about removing the decimal place and the 0's? I changed it to a number field and chose 0 decimal places with no such luck.
I found this post, but not sure I understand how to accomplish this - https://powerusers.microsoft.com/t5/Using-Flows/sharepoint-caculated-columns-showing-13-decimal-plac...
Here is my formula
=IF(ISERROR(DATEDIF([From Date],[To Date],"d")),"",(DATEDIF([From Date],[To Date],"d"))+1-INT(DATEDIF([From Date],[To Date],"d")/7)*2-IF((WEEKDAY([To Date])-WEEKDAY([From Date]))<0,2,0)-IF(OR(AND(WEEKDAY([To Date])=7,WEEKDAY([From Date])=7),AND(WEEKDAY([To Date])=1,WEEKDAY([From Date])=1)),1,0)-IF(AND(WEEKDAY([From Date])=1,(WEEKDAY([To Date])-WEEKDAY([From Date]))>0),1,0)-IF(AND(NOT(WEEKDAY([From Date])=7),WEEKDAY([To Date])=7),1,0))
Solved! Go to Solution.
Why don't you use this:
Why don't you use this:
Can you make sure that you have the correct quotes? you should only have ' and no `
I would type first(split( in the express window. Then switch to the Dynamic contents tab and click on the calculated column. That will ensure that you have the right quotes.
okay, so that let me save the expression. I tested and it still shows the .0000 in the email. I kept total days in the details of the email. Do I need to select something different?
Click in you email body text that you have at the moment so that the cursor is in the place where you want the output from the compose to appear.
Then go to the dynamic content tab and add the output from the compose action ( you migth have to click on the show more link)
This is quite the same problem i'm facing today.
I've tried the suggested solution by @Pieter_Veenstra , but ended up with this result:
Screenshot from my flow:
The expression which was used:
I'm really looking forwar for help! Thanks!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
The Super User program for 2022- Season 2 has kicked off!