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 / Same result in For All...
Power Apps
Unanswered

Same result in For All function

(0) ShareShare
ReportReport
Posted on by 15

Greetings to all,

in order to calculate the average of a certain item and save the result in a collection, I use the filter function to filter the relevant items in the sharepoint list tbl_CAPEX.

ClearCollect(colAllBenchmarks;Filter(tbl_CAPEX_layout; Projekttyp = myProjekttyp));;
ForAll(
 Filter(tbl_CAPEX_layout; Projekttyp = myProjekttyp);
 Patch(
 colAllBenchmarks;
 ThisRecord;
 {
 EP: Average(Filter(tbl_CAPEX; Nummerierung_1 = Int(ThisRecord.Nummerierung_1));EP)
 }
 )
)


Unfortunately, I get the same result for every entry in "EP", even though ThisRecord.Nummerierung is iterated through correctly.

I appreciate any help.

Categories:
I have the same question (0)
  • elseb Profile Picture
    774 Moderator on at

    Hi,

     

    Haven't read the whole code yet but it looks like you have two semicolons at the end here:

    ClearCollect(colAllBenchmarks;Filter(tbl_CAPEX_layout; Projekttyp = myProjekttyp));;

     

    Seb

  • Henrik12 Profile Picture
    15 on at

    Hi Seb,

     

    thanks for your message, but I am using the German syntax. That's why I have two semicolons.

     

    Henrik

  • elseb Profile Picture
    774 Moderator on at

    apologies, I've just noticed the semicolons everywhere 🙂

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard