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 Apps
Unanswered

SQL & variables

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

How can I set this to a variable?

Distinct(AssemblyTeam_1, Stop)

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    This variable will have a table since distinct results table.

     

    Set(varStop, Distinct(AssemblyTeam_1, Stop))

     

    Result will be like below

    StalinPonnusamy_0-1634840351534.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I get an error. Please see screenshot

    error.png

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Distinct means results will be only one Column. Are you trying to filter the Gallery with unique data?

     

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @Anonymous ,

    The error says that you cannot use Set() function (behaviour function) inside Items (non-behaviour property)... from @StalinPonnusamy formula extract and use only :

    Distinct(AssemblyTeam_1, Stop)

     Please take in consideration the delegation issues that might arise, as Distinct function is not delegable to SQL server.

    Hope it helps !

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard