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 / Filter with three logi...
Power Apps
Unanswered

Filter with three logical tests

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

I am trying to print the rating of a solution based on the Solution Version and Solution Name selected. I have a table that includes columns for the Solution Version, Solution Name, and Solution Rating. 

 

I am trying to do something like this

 

First(Sort(Filter('Solution Ratings', 'Rated By'=Office365Users.MyProfileV2().mail && Solution.Name = 'Solution Ratings'.'Solution Name' && Solution.'Solution Version' = 'Solution Ratings'.'Solution Version'),'Created On',Descending))

 

but I am receiving an error and delegation warning

 

My label inside my gallery looks like this

 

If(
Office365Users.MyProfileV2().mail in 'Solution Ratings'.'Rated By',
"Previous Rating: " & ThisItem.'Solution Rating',
"Submit your first rating for this solution"
)

 

Is there a way to print out the users previous ratings based on the Solution and Version selected in the previous screen?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    Hi @ilimeli ,

    First() is not Delegable and your profile may also cause issues, so try this

    With(
     {wMail:Office365Users.MyProfileV2().mail},
     Sort(
     LookUp(
     'Solution Ratings', 
     'Rated By'= wMail && 
     'Solution Name' = Solution.Name && 
     'Solution Version' = Solution.'Solution Version'
     ),
     'Created On',
     Descending
     )
    )

    If you still get a warning, what type of field is Solution?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • ilimeli Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz , Solution is a variable created for the gallery item selected in the previous screen. 

    I did get an error related to the sort function

  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    @ilimeli 

    What type of field is 'Created On' - if it is a date field, it should not error.

  • WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    HI @ilimeli ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard