cancel
Showing results for
Did you mean:
Post Prodigy

## How to round a decimal number to two places

Hi All,

The following formula gives me a decimal number from a calculated list column, in the column it is 2 decimal places. But in Power automate it is 5/6 who can I round it down to two?

With({wactivity:
SortByColumns(
Filter(
'Activity Tracker',
StartsWith('Created By'.Email, glbUser.Email)  ),
"ID",
If(SortDescending1, Descending, Ascending)
)},
Sum(Filter(wactivity,'Date of Activity' >= Date(Year(Today()), Month(Today()), 1) && 'Date of Activity' <= Date(Year(Today()), Month(Today()) + 1, 0)),'Total Hours')
)

Thanks to @Drrickryp for the initial formula.

John.

1 ACCEPTED SOLUTION

Accepted Solutions
Most Valuable Professional

@jbrines  To round off decimal value in Power Automate to two decimal places you can refer to this post https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Round-off-to-two-decimal-places-using-Po...

Regards,
Anna Jhaveri

If you like my response, please give it a Thumbs Up.
2 REPLIES 2
Most Valuable Professional

@jbrines  To round off decimal value in Power Automate to two decimal places you can refer to this post https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Round-off-to-two-decimal-places-using-Po...

Regards,
Anna Jhaveri

If you like my response, please give it a Thumbs Up.
Post Prodigy

Sorry silly me I meant to put it in Power Apps, going to to do tha now

Announcements

#### Celebrating the May Super User of the Month: Laurens Martens

@LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!

#### Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!