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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard