web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove zeros from email
Power Automate
Answered

Remove zeros from email

(0) ShareShare
ReportReport
Posted on by 1,712

Hello everyone !

I am trying to create a calculated column which shows the number of days' difference between two columns which have dates in them. I understand that I can get this with the following formula:

 

=DATEDIF([Column 1],[Column 2],"D")

 

 

But when i trigger the calculated column in a flow and show the days calculated in an email it look likes for example:

In the list it shows the number without zeros:

So what i should use in the formula or in flow to remove all the zeros ? Any help would be appreciated.

Thank you!

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,581 Most Valuable Professional on at

    Have you tried putting an INT() function around the rest of the calculation?

  • EBMRay Profile Picture
    1,712 on at

    Hi @Pstork1,

    Nope, i am not using the integer function i am implementing this one:

    =DATEDIF(StartDate,EndDate,"yd")

    If i should use INT() what it would be the function ?

     

    Thanks

  • Pstork1 Profile Picture
    69,581 Most Valuable Professional on at

    As I said, put the INT() around the result like this.

    =INT(DATEDIF(StartDate,EndDate,"yd"))

    The DateDif is generating something that is being interpreted as a whole number.  Putting that inside an Int() should get it interpreted as an integer instead. 

  • EBMRay Profile Picture
    1,712 on at

    @Pstork1 

    I have used the formula you mentioned but it keeps showing the zeros in the email. 

    I am not using this formula in the flow, i am using it in the column list.

    So i am only calling the Duration column  from the dynamic content in the send email action.

  • Verified answer
    Pstork1 Profile Picture
    69,581 Most Valuable Professional on at

    Sorry, I forgot this was the formula in a calculated column.  What I should have said is put an Int() around the calculated column in the Flow when you insert it into the email.  I did a test and my column was called 'Caculated2'.

    int(body('Get_item')?['Calculated2'])

    The column is already set to be a number, but when you put it into the email you need to specify that you want an integer. 

  • EBMRay Profile Picture
    1,712 on at

    @Pstork1 

    I am not using the Get_items action, i am using when an item is created so what it should be my expression ?

    Capture.PNG

  • Pstork1 Profile Picture
    69,581 Most Valuable Professional on at

    Hover over the field that you put into the email in the past.  That should show you what the code is in your flow.  Just use that and put it inside an Int().

  • EBMRay Profile Picture
    1,712 on at

    Thank you! It works.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 241 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 179

#3
Haque Profile Picture

Haque 159

Last 30 days Overall leaderboard