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 / Help writing an algo
Power Apps
Answered

Help writing an algo

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
ClearCollect(
 distinctStatus,
 Distinct('OneEng Candidates', GeneralStatus)
);

 

produces this collection:

Screen Shot 2020-07-31 at 9.48.35 AM.png

I'm trying to count how many times each result appears in a common data source:

 

I am trying to do this by using ThisRecord.Result. I can create a mirror column, testing to make sure its referencing the correct "status:

 

ClearCollect(countStatus, AddColumns(distinctStatus, "Test", ThisRecord.Result))

 

Screen Shot 2020-07-31 at 9.49.46 AM.png

Hard coding in a status works as expected:

ClearCollect(
 countStatus,
 AddColumns(
 distinctStatus,
 "Test",
 CountRows(
 Filter(
 'OneEng Candidates',
 Text(GeneralStatus) = "Loop-Scheduling"
 )
 )
 )
)

 However, when I try to change "loop-scheduling" to "ThisResult.Record", it won't recognize it as an object and it doesn't work:

 

Screen Shot 2020-07-31 at 9.52.15 AM.png

 

What am I doing wrong? Is there a way to reference the "current row" inside filter? 

Categories:
I have the same question (0)
  • Verified answer
    morall Profile Picture
    Microsoft Employee on at

    I can just use Result, I don't need ThisRecord

  • alrezac Profile Picture
    Microsoft Employee on at

    Hi,

     

    Thanks for your follow up post! Hopefully this can be useful to future communities users. Remember to mark as the solution.

     

    Regards,

     

    Alex

     

    -------

     

    Community Support Team _ Alex Rezac
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,074

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 606

Last 30 days Overall leaderboard