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 Apps / Ignore Zeros in the Av...
Power Apps
Answered

Ignore Zeros in the Average() function

(0) ShareShare
ReportReport
Posted on by

Good day

I have the following formula but would like to exclude any zero values if there are any in one of the labels.

 

janineb_0-1665754120084.png

Your kind assistance would be appreciated

Regards

Janine

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @janineb 

    Yes, but first...do not reference your controls only by name.  You should be referencing the property you want the value from.  This might work in the designer, but all too often it fails in play mode!

     

    Change your formula to the following:

    Text(
     Average(
     Filter([
     Value(Quality1ValueLbl.Text), 
     Value(BusinessCase2ValueLbl.Text),
     Value(RiskMitigation3ValueLbl.Text),
     Value(Fitness4ValueLbl.Text),
     Value(CreditRisk5ValueLbl.Text),
     Value(Legal5ValueLbl.Text),
     Value(ESG5ValueLbl.Text),
     Value(Compliance5ValueLbl.Text),
     Value(TeamPerformance6ValueLbl.Text),
     Value(Turnaround7ValueLbl.Text)
     ],
     Value>0
     ),
     Value
     ) * 100,
     "#.0%"
    )
    

     

    I hope this is helpful for you.

  • Verified answer
    janineb Profile Picture
    on at

    You are an absolute lifesaver - thank you so much

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard