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 / Power Automate calcula...
Power Automate
Answered

Power Automate calculate average of questions

(0) ShareShare
ReportReport
Posted on by 789

Good Morning,

 

I am trying to build a flow that calculates the average of a SharePoint list column. I want reduce the length value by 1 if I get zero value in the column from Get Items.

average 1.jpg

average 2.jpg

 

average 3.jpg

 

average 5.jpg

Example

Question 1

1

5

8

0

6

 

 

Please Help

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @Caleb62881177 ,

    Do you want to subtract one from the list length when the value of your Question column is equal to zero?

    If so, I have a test for your reference.

    In my scenario:

    vyetonggumsft_0-1694597612780.png

    vyetonggumsft_1-1694597612788.png

    The Compose Expression: length(body('Filter_array'))

    vyetonggumsft_2-1694597612791.png

    vyetonggumsft_3-1694597612794.png

    vyetonggumsft_4-1694597612797.png

    vyetonggumsft_5-1694597612799.png

    Best Regards,

    Sunshine Gu

  • Caleb62881177 Profile Picture
    789 on at

    @v-yetonggu-msft  That is an interesting solution. I took a longer route and created a Get Items with odata filtering. Using the following Question1 ne 0. That helped me filter out the 0s in the column.

  • Caleb62881177 Profile Picture
    789 on at

    @v-yetonggu-msft  Thank you. You gave me an idea for a future project.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard