cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MrDzem
New Member

Referencing ForAll ThisRecord.Result within Sum and LookUp function

Could anyone help me finding a solution to the problem in a title? Here is a part of code I'm working on. I have no idea why it work in the example marked with yellow and not in cases marked with red.

Thank you in advance for all the helpZrzut ekranu 2021-07-28 170206.png

1 ACCEPTED SOLUTION

Accepted Solutions
GarethPrisk
Resident Rockstar
Resident Rockstar

Us the "As" operator to disambiguate your loops. Since you have nested loops, the ThisRecord will only reference the inner-most loop.

https://powerapps.microsoft.com/en-us/blog/formulas-thisrecord-as-and-sequence/

 

View solution in original post

3 REPLIES 3
MrDzem
New Member

If I try doing it within one loop the result is the same. I split it trying to look for solutions

GarethPrisk
Resident Rockstar
Resident Rockstar

Us the "As" operator to disambiguate your loops. Since you have nested loops, the ThisRecord will only reference the inner-most loop.

https://powerapps.microsoft.com/en-us/blog/formulas-thisrecord-as-and-sequence/

 

MrDzem
New Member

Thank you so much, it did the job! So simple...

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (1,926)